修改了直接更新两件装的已使用
This commit is contained in:
@@ -107,7 +107,19 @@ namespace BarCode.Web.Api.Controllers
|
||||
IsNotCount = entity.IsNotCount
|
||||
};
|
||||
//把查询到的序列码修改成使用
|
||||
if(entity.IsTwo>1)//说明是两件装
|
||||
{
|
||||
string[] s = entity.TwoSerialNumber.Split(',');
|
||||
for (int i = 0; i < s.Length; i++)
|
||||
{
|
||||
entity.WmsGet(s[i]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.WmsGet(dto.SerialNumber);
|
||||
}
|
||||
|
||||
var list = new List<Domain.Entitys.SerialNumbers>();
|
||||
list.Add(entity);
|
||||
var res = await _serialNumbersRepositories.EditEntityList(list);
|
||||
|
||||
Reference in New Issue
Block a user