This commit is contained in:
2025-05-22 22:55:14 +08:00
parent 58f7dfa648
commit 5699e86943
5 changed files with 28 additions and 6 deletions

View File

@@ -200,7 +200,7 @@ namespace MyCode.Project.Services.Implementation
var oldItem = oldItems.FirstOrDefault();
if (oldItems.Count > 1)
{
oldItem= oldItems.FirstOrDefault(h=>h.FSupplierLot== FSupplierLot);
oldItem= oldItems.Where(t=>t.MSSSupplierLot=="0" || t.MSSSupplierLot == null).FirstOrDefault(h=>h.FSupplierLot== FSupplierLot);
}
if (oldItem == null)
{