外协入库与四楼自动移库逻辑修改、现场问题处理

This commit is contained in:
2024-10-09 18:12:33 +08:00
parent 05714f027d
commit c675ec3e07
16 changed files with 504 additions and 189 deletions

View File

@@ -91,6 +91,11 @@ namespace Tnb.WarehouseMgr
throw new ArgumentNullException(nameof(input));
}
if (input.details.Count == 0)
{
throw new AppFriendlyException($"【MaterialSign】未接收到物料列表数据请重试", 500);
}
WmsCarryH wmsCarryH = await _db.Queryable<WmsCarryH>().Where(r => r.carry_code == input.carry_code).FirstAsync();
if (wmsCarryH == null)
{
@@ -282,6 +287,7 @@ namespace Tnb.WarehouseMgr
}
}
await _db.Updateable<BasLocation>().SetColumns(r => r.is_use == "0").Where(r => r.id == carryLoc.id).ExecuteCommandAsync();
await _db.Insertable(wmsMaterialSignH).ExecuteCommandAsync();
await _db.Insertable(wmsMaterialSignDs).ExecuteCommandAsync();