修改了数字序列号的返回
This commit is contained in:
Binary file not shown.
@@ -317,12 +317,20 @@ 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.IsTwo > 1)
|
||||||
|
{
|
||||||
if (entity.serial.TwoSerialNumber != null)
|
if (entity.serial.TwoSerialNumber != null)
|
||||||
{
|
{
|
||||||
response.TwoSerialNumber = entity.serial.TwoSerialNumber.Replace(entity.serial.SerialNumber, "").Replace(",", "");
|
response.TwoSerialNumber = entity.serial.TwoSerialNumber.Replace(entity.serial.SerialNumber, "").Replace(",", "");
|
||||||
response.IsNotCount = entity.serial.IsNotCount;
|
response.IsNotCount = entity.serial.IsNotCount;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
response.TwoSerialNumber = "";
|
||||||
|
response.IsNotCount = "0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
response.TwoSerialNumber = "";
|
response.TwoSerialNumber = "";
|
||||||
response.IsNotCount = "0";
|
response.IsNotCount = "0";
|
||||||
|
|||||||
Reference in New Issue
Block a user