1
This commit is contained in:
@@ -517,6 +517,7 @@ namespace Tnb.WarehouseMgr
|
||||
carryCodeIts.Add(carryCode);
|
||||
|
||||
BasLocation loc = new();
|
||||
loc.id = multiList[i].endlocation_id;
|
||||
loc.is_lock = 0;
|
||||
if (multiList[i].carry_status.ToEnum<EnumCarryStatus>() == EnumCarryStatus.空闲)
|
||||
{
|
||||
@@ -530,7 +531,7 @@ namespace Tnb.WarehouseMgr
|
||||
//更新条码的库位和仓库信息
|
||||
await _db.Updateable(carryCodeIts).UpdateColumns(it => new { it.warehouse_id, it.location_id, it.location_code }).Where(it => multiList.Select(x => x.carry_id).Contains(it.carry_id)).ExecuteCommandAsync();
|
||||
//更新库位信息,使用状态为 使用,锁定状态为未锁定
|
||||
await _db.Updateable(locIts).UpdateColumns(it => new { it.is_use, it.is_lock }).Where(it => multiList.Select(x => x.endlocation_id).Contains(it.id)).ExecuteCommandAsync();
|
||||
await _db.Updateable(locIts).UpdateColumns(it => new { it.is_use, it.is_lock }).ExecuteCommandAsync();
|
||||
//更新业务主表的单据状态
|
||||
foreach (var dt in disTasks)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user