Browse Source

更新默认站台值和任务分配逻辑

修改了默认站台的值,从 "2501" 改为 "2701"。
调整了任务分配逻辑,当仓库代码以 "1"、"2" 或 "3" 开头时,
原先是北侧任务数大于南侧任务数时分配到南侧站台,
现在改为南侧任务数大于北侧任务数时分配到北侧站台。
林豪 左 9 months ago
parent
commit
f9afd63d5c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      YWGC/FJK/WCS.WorkEngineering/Systems/NoInteractionSystems.cs

+ 2 - 2
YWGC/FJK/WCS.WorkEngineering/Systems/NoInteractionSystems.cs

@@ -537,7 +537,7 @@ namespace WCS.WorkEngineering.Systems
         private string GetAgvStation(WCS_TaskInfo task, SqlSugarHelper db)
         {
             // 默认站台
-            var defaultStation = "2501";
+            var defaultStation = "2701";
             var sta = defaultStation;
 
             // 定义仓库与站台的映射关系
@@ -582,7 +582,7 @@ namespace WCS.WorkEngineering.Systems
                     task.WarehouseCode.StartsWith("3"))
                 {
                     var (northCount, southCount) = GetNorthAndSouthTaskCounts(db, stationPair);
-                    sta = northCount > southCount ? stationPair.S : stationPair.N;
+                    sta = southCount > northCount ? stationPair.N : stationPair.S;
                 }
                 else
                 {