删除预任务生成执行后,目标库位占用赋值
This commit is contained in:
@@ -255,7 +255,7 @@ namespace Tnb.WarehouseMgr
|
||||
.InnerJoin<BasLocation>((a, b, c, d) => a.endlocation_id == d.id && d.is_use == "0")
|
||||
.Where(a => a.status == WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID && !string.IsNullOrWhiteSpace(a.startlocation_id))
|
||||
.OrderBy(a => new { priority = SqlFunc.Desc(a.priority), a.bill_code })
|
||||
.Select((a, b, c,d) => new WmsPretaskH
|
||||
.Select((a, b, c, d) => new WmsPretaskH
|
||||
{
|
||||
move_num = c.move_num,
|
||||
third_eqp_type = c.third_eqp_type,
|
||||
@@ -925,6 +925,10 @@ namespace Tnb.WarehouseMgr
|
||||
Expression<Func<WmsCarryH, bool>> whereExp = input.CarryIds?.Count > 0 ? it => input.CarryIds.Contains(it.id) : it => it.id == input.CarryId;
|
||||
_ = await _db.Updateable<WmsCarryH>().SetColumns(setCarryColumnsExp).Where(whereExp).ExecuteCommandAsync();
|
||||
}
|
||||
if (input.CarryStartLocationId.IsNullOrWhiteSpace() == false)
|
||||
{
|
||||
_ = await _db.Updateable<BasLocation>().SetColumns(setLocaionColumbExp).Where(it => input.LocationIds.Contains(it.id)).ExecuteCommandAsync();
|
||||
}
|
||||
//根据所有库位更新库位的锁定状态为“锁定”
|
||||
if (setLocaionColumbExp != null && input.LocationIds?.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user