收货控制 自动空托盘出库调整
This commit is contained in:
@@ -579,6 +579,7 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
}
|
||||
|
||||
// 未锁定且已占用且库位中没有记录托盘 此时认为是叠盘机送过来的
|
||||
// 20241018 业务变更 后续删除
|
||||
var wmsLoc = db_BGWCarrySupplementtimer.Queryable<BasLocation>()
|
||||
.LeftJoin<WmsCarryH>((a, b) => a.id == b.location_id)
|
||||
.Where((a, b) => a.is_lock == 0 && a.is_use == "1"
|
||||
@@ -606,7 +607,23 @@ where carry_code = '{coderesult}' and status = '{WmsWareHouseConst.TASK_BILL_STA
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}).Select(r => r.Key);
|
||||
}).Select(r => r.Key).ToList();
|
||||
wmsLoc.Clear();
|
||||
if (wmsLoc.Count() == 0)
|
||||
{
|
||||
OutStockStrategyQuery OutStockStrategyInput = new()
|
||||
{
|
||||
carrystd_id = WmsWareHouseConst.CARRY_TP_ID,
|
||||
warehouse_id = WmsWareHouseConst.WAREHOUSE_YCL_ID,
|
||||
Size = 1
|
||||
};
|
||||
|
||||
List<WmsCarryH>? carrys = await _wareHouseService.OutStockStrategy(OutStockStrategyInput, db_BGWCarrySupplementtimer);
|
||||
if (carrys.Count > 0)
|
||||
{
|
||||
wmsLoc = await db_BGWCarrySupplementtimer.Queryable<BasLocation>().Where(r => r.id == carrys[0].location_id).ToListAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (wmsLoc.Count() == 0)
|
||||
|
||||
Reference in New Issue
Block a user