注塑定点配送已下发也不发任务

This commit is contained in:
2024-06-27 11:01:23 +08:00
parent fb9ba4b7a8
commit bccf2bca5a

View File

@@ -290,7 +290,9 @@ namespace Tnb.ProductionMgr
if (await _db.Queryable<WmsPretaskH>().AnyAsync(x =>
x.endlocation_id == equipment.upmat_location_id &&
x.biz_type == WmsWareHouseConst.BIZTYPE_WMSDELIVERY_ID &&
x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID))
(x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID
|| x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_YXF_ID)
))
{
Log.Error($"{equipment.name}存在待下发的任务");
continue;