配送申请,生成预任务新增,起终点位Id

This commit is contained in:
yang.lee
2023-11-23 16:29:26 +08:00
parent 763b56dd91
commit 31c4deb0e2
3 changed files with 4 additions and 1 deletions

View File

@@ -370,6 +370,7 @@ namespace Tnb.WarehouseMgr
await db.Ado.BeginTranAsync();
List<string> endPointIds = disTasks.Where(t => t.area_code.StartsWith("ELE", StringComparison.OrdinalIgnoreCase)).Select(t => t.endpoint_id).ToList();
Logger.Information($"endPointIds:{string.Join(",", endPointIds)}");
if (endPointIds?.Count > 0)
{
elevatorList = elevatorList.FindAll(x => endPointIds.Contains(x.point_id));

View File

@@ -580,7 +580,7 @@ namespace Tnb.WarehouseMgr
csCode.checkstock_d_id = checkStockDMap.ContainsKey($"{csCode.carry_id}{csCode.material_id}{csCode.code_batch}") ? checkStockDMap[$"{csCode.carry_id}{csCode.material_id}{csCode.code_batch}"] : "";
}
//插入 盘点code表
await _db.Insertable(checkStockCodes).ExecuteCommandAsync();
_ = await _db.Insertable(checkStockCodes).ExecuteCommandAsync();
var detailIds = checkStockCodes.Select(x => x.checkstock_d_id).ToList();
var checkStockDs = await _db.Queryable<WmsCheckstockD>().Where(it => detailIds.Contains(it.id)).ToListAsync();
foreach (var csd in checkStockDs)

View File

@@ -148,7 +148,9 @@ namespace Tnb.WarehouseMgr
org_id = _userManager.User.OrganizeId,
startlocation_id = sPoint?.location_id!,
startlocation_code = sPoint?.location_code!,
startpoint_id = sPoint?.id,
startpoint_code = sPoint?.point_code,
endpoint_id = ePoint?.id,
endpoint_code = ePoint?.point_code,
endlocation_id = ePoint?.location_id!,
endlocation_code = ePoint?.location_code!,