Merge branch 'v1.0.5' of https://codeup.aliyun.com/62ce7bca487c500c27f70a79/OPS/WMS-Api into v1.0.5
This commit is contained in:
@@ -54,6 +54,7 @@ namespace WMS.Web.Domain.Services
|
||||
var entityList = await _serialNumbersRepositories.GetEntityList(serialNumbers);
|
||||
var boxIds = changeBoxRecords.Select(s => s.DestBoxId).ToList();
|
||||
var boxList = await _boxRepositories.GetEntityList(boxIds);
|
||||
var boxInventorys = await _boxInventoryRepositories.GetList(boxIds);
|
||||
var userName = _singleDataService.GetSingleData(SingleAction.Staffs, loginInfo.UserInfo.CompanyId, loginInfo.UserInfo.StaffId);
|
||||
IDbContextTransaction _transaction = null;
|
||||
if (isTransaction)
|
||||
@@ -67,7 +68,8 @@ namespace WMS.Web.Domain.Services
|
||||
var box = boxList.FirstOrDefault(f => f.Id == destBox.DestBoxId);
|
||||
//修改序列号和箱绑定关系
|
||||
entity.Bind(destBox.DestBoxId, box.CompleteCartonTime);
|
||||
|
||||
var boxInventory = boxInventorys.FirstOrDefault(f => f.BoxId == destBox.DestBoxId);
|
||||
entity.ChangeBox(boxInventory == null ? false : true);
|
||||
|
||||
//记录序列号操作日志
|
||||
SerialNumberOperate op = new SerialNumberOperate()
|
||||
|
||||
Reference in New Issue
Block a user