一楼中储仓下发二楼出库策略优化,bug
This commit is contained in:
@@ -142,14 +142,6 @@ namespace Tnb.WarehouseMgr
|
||||
WmsCarryH? carry = await _db.Queryable<WmsCarryH>().SingleAsync(it => it.id == input.carry_id);
|
||||
if (carry != null)
|
||||
{
|
||||
int row = await _db.Deleteable<WmsCarryD>().Where(r => r.carry_id == input.carry_id).ExecuteCommandAsync();
|
||||
isOk = row > 0;
|
||||
|
||||
if (!isOk)
|
||||
{
|
||||
throw new Exception($"料架id{input.carry_id}载具解绑失败");
|
||||
}
|
||||
|
||||
|
||||
// 插入子载具绑定记录
|
||||
//VisualDevModelDataCrInput visualDevModelCrInput = new() { data = new Dictionary<string, object>() };
|
||||
@@ -167,6 +159,17 @@ namespace Tnb.WarehouseMgr
|
||||
//VisualDevEntity? templateEntity = await _visualDevService.GetInfoById(ModuleConsts.MODULE_WMSCARRYUNBIND_ID, true);
|
||||
//await _runService.Create(templateEntity, visualDevModelCrInput);
|
||||
|
||||
|
||||
int row = await _db.Deleteable<WmsCarryD>().Where(r => r.carry_id == input.carry_id).ExecuteCommandAsync();
|
||||
//isOk = row > 0;
|
||||
|
||||
//if (!isOk)
|
||||
//{
|
||||
// throw new Exception($"料架id{input.carry_id}载具解绑失败");
|
||||
//}
|
||||
Logger.LogInformation($"【CarryUnbind】料架{carry.carry_code}已解绑,解绑条数{row}");
|
||||
|
||||
|
||||
await _db.Ado.CommitTranAsync();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user