Эх сурвалжийг харах

新增出库任务结束时间

林豪 左 3 жил өмнө
parent
commit
8c3b1c9bdf

+ 11 - 11
Projects/永冠OPP/WCS.Service/Extensions/DeviceExtension.cs

@@ -819,17 +819,17 @@ namespace WCS.Service.Extensions
                 new StationLocation("G1214",0,"RGV1",0),
                 new StationLocation("G1222",0,"RGV1",0),
                 new StationLocation("G1164",0,"RGV1",0),
-                new StationLocation("G1",486326,"RGV3",0),
-                new StationLocation("G2",694439,"RGV3",0),
-                new StationLocation("G3",789931,"RGV3",0),
-                new StationLocation("G4",961595,"RGV3",0),
-                new StationLocation("G5",1013350,"RGV3",0),
-                new StationLocation("G6",1069938,"RGV3",0),
-                new StationLocation("G7",1126338,"RGV3",0),
-                new StationLocation("G8",1178355,"RGV3",0),
-                new StationLocation("G9",1256875,"RGV3",0),
-                new StationLocation("G10",1313239,"RGV3",0),
-                new StationLocation("G11",1369970,"RGV3",0),
+                new StationLocation("G1",486326,"RGV3",1567770),
+                new StationLocation("G2",694439,"RGV3",1567770),
+                new StationLocation("G3",789931,"RGV3",1567770),
+                new StationLocation("G4",961595,"RGV3",1567770),
+                new StationLocation("G5",1013350,"RGV3",1567770),
+                new StationLocation("G6",1069938,"RGV3",1567770),
+                new StationLocation("G7",1126338,"RGV3",1567770),
+                new StationLocation("G8",1178355,"RGV3",1567770),
+                new StationLocation("G9",1256875,"RGV3",1567770),
+                new StationLocation("G10",1313239,"RGV3",1567770),
+                new StationLocation("G11",1369970,"RGV3",1567770),
             });
         }
 

+ 1 - 0
Projects/永冠OPP/WCS.Service/Works/Station/一楼出库.cs

@@ -63,6 +63,7 @@ namespace WCS.Service.Works.Station
                         if (task.STATUS != TaskStatus.执行中)
                             throw new WarnException($"{task.ID}任务状态错误");
                         task.STATUS = TaskStatus.已完成;
+                        task.ENDTIME = System.DateTime.Now;
                         db.Default.SaveChanges();
                         task.CreateStatusLog(db, $"状态由[{TaskStatus.执行中}]变更为[{task.STATUS}]-{dev.Entity.CODE}", this.GetType());
                         dev.Data.CmdType = IstationCmdType.月台出库口任务完成;