|
@@ -140,7 +140,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
taskInfo.SrmStation = taskInfo.AddrFrom;
|
|
|
taskInfo.LastInteractionPoint = obj.Entity.Code;
|
|
|
taskInfo.Tunnel = tunnel.Code;
|
|
|
- taskInfo.Height = 2;
|
|
|
+ taskInfo.Height = 1;
|
|
|
taskInfo.Device = obj.Entity.Code switch
|
|
|
{
|
|
|
"2532" => "SRM1",
|
|
@@ -151,7 +151,17 @@ namespace WCS.WorkEngineering.Systems
|
|
|
"3532" => "SRM6",
|
|
|
_ => taskInfo.Device
|
|
|
};
|
|
|
- db.UpdateableRowLock(taskInfo).UpdateColumns(x => new { x.Status, x.StartTime, x.SrmStation, x.LastInteractionPoint, x.Tunnel, x.Height, x.Device }).ExecuteCommand();
|
|
|
+ taskInfo.WarehouseCode = obj.Entity.Code switch
|
|
|
+ {
|
|
|
+ "2532" => "1N",
|
|
|
+ "2732" => "1S",
|
|
|
+ "2932" => "2N",
|
|
|
+ "3132" => "2S",
|
|
|
+ "3332" => "3N",
|
|
|
+ "3532" => "3S",
|
|
|
+ _ => taskInfo.Device
|
|
|
+ };
|
|
|
+ db.UpdateableRowLock(taskInfo).UpdateColumns(x => new { x.Status, x.StartTime, x.SrmStation, x.LastInteractionPoint, x.Tunnel, x.Height, x.Device, x.WarehouseCode }).ExecuteCommand();
|
|
|
taskInfo.AddWCS_TASK_DTL(db, obj.Entity.Code, "开始执行入库任务");
|
|
|
task = taskInfo;
|
|
|
}
|