This commit is contained in:
2024-10-10 12:02:16 +08:00
parent a4ce415b62
commit 8a5ff0ebe6
4 changed files with 17 additions and 6 deletions

View File

@@ -478,7 +478,7 @@ namespace Tnb.ProductionMgr
// }
/// <summary>
/// 定点配送
/// 空载具定点配送
/// </summary>
/// <returns></returns>
[HttpGet]
@@ -540,12 +540,13 @@ namespace Tnb.ProductionMgr
Log.Error($"{equipment.name}未配置上料库位");
continue;
}
if (await _db.Queryable<WmsPretaskH>().AnyAsync(x =>
if (await _db.Queryable<WmsDistaskH>().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_YXF_ID
|| x.status == WmsWareHouseConst.PRETASK_BILL_STATUS_START_ID
(x.status == WmsWareHouseConst.TASK_BILL_STATUS_DZX_ID
|| x.status == WmsWareHouseConst.TASK_BILL_STATUS_YXD_ID
|| x.status == WmsWareHouseConst.TASK_BILL_STATUS_RUNING_ID
|| x.status == WmsWareHouseConst.TASK_BILL_STATUS_PAUSE_ID
)
))
{