修改了数字序列号的返回

This commit is contained in:
2025-05-29 16:41:12 +08:00
parent 588bc06842
commit 5da6757283
2 changed files with 12 additions and 4 deletions

View File

@@ -317,17 +317,25 @@ namespace WMS.Web.Repositories
if (entity.boxInventory != null) if (entity.boxInventory != null)
response.IsBoxInventory = entity.boxInventory.Details.SelectMany(s => s.SerialNumbers).Where(w => serialNumber.Equals(w)).Count() >= 1 ? true : false; response.IsBoxInventory = entity.boxInventory.Details.SelectMany(s => s.SerialNumbers).Where(w => serialNumber.Equals(w)).Count() >= 1 ? true : false;
response.IsTwo = entity.serial.IsTwo; response.IsTwo = entity.serial.IsTwo;
if (entity.serial.TwoSerialNumber != null) if (entity.serial.IsTwo > 1)
{ {
response.TwoSerialNumber = entity.serial.TwoSerialNumber.Replace(entity.serial.SerialNumber, "").Replace(",", ""); if (entity.serial.TwoSerialNumber != null)
response.IsNotCount = entity.serial.IsNotCount; {
response.TwoSerialNumber = entity.serial.TwoSerialNumber.Replace(entity.serial.SerialNumber, "").Replace(",", "");
response.IsNotCount = entity.serial.IsNotCount;
}
else
{
response.TwoSerialNumber = "";
response.IsNotCount = "0";
}
} }
else else
{ {
response.TwoSerialNumber = ""; response.TwoSerialNumber = "";
response.IsNotCount = "0"; response.IsNotCount = "0";
} }
response.IsNotCount = entity.serial.IsNotCount; response.IsNotCount = entity.serial.IsNotCount;
return response; return response;
} }