更改了非采购上架

This commit is contained in:
2025-05-12 11:26:23 +08:00
parent bdfbd1468e
commit c447f4bbf3
8 changed files with 85 additions and 4 deletions

View File

@@ -227,6 +227,15 @@ namespace WMS.Web.Repositories.Configuration
(c1, c2) => c1.SequenceEqual(c2),
c => c.Aggregate(0, (a, v) => HashCode.Combine(a, v.GetHashCode())),
c => (List<string>)c.ToList()));
ent.Property(f => f.TwoSerialNumbers).HasConversion(
v => JsonConvert.SerializeObject(v),
v => JsonConvert.DeserializeObject<List<string>>(v),
new ValueComparer<List<string>>(
(c1, c2) => c1.SequenceEqual(c2),
c => c.Aggregate(0, (a, v) => HashCode.Combine(a, v.GetHashCode())),
c => (List<string>)c.ToList()));
});
builder.Entity<InStockErpDetails>(ent =>
{