生成预任务增加判断,如果起终库位相同则删除对应的预任务

This commit is contained in:
alex
2023-09-06 10:15:27 +08:00
parent 8411d57b6e
commit 6b847305f7
3 changed files with 16 additions and 9 deletions

View File

@@ -144,7 +144,7 @@ namespace Tnb.WarehouseMgr
if (!isMatch) throw new AppFriendlyException("库位与载具规格不匹配", 500);
ePoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == endLocations[0].id);
}
sPoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == loc.id && it.area_id == ePoint.area_id);
sPoint = await _db.Queryable<WmsPointH>().FirstAsync(it => it.location_id == loc.id);
if (sPoint != null && ePoint != null)
{