From 91f1eb7d8992bad21865cf1c614da279d39aff73 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 27 三月 2026 10:02:01 +0800
Subject: [PATCH] 需手动移栽,AGV取放请求优化

---
 项目代码/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Inbound.cs |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Inbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Inbound.cs"
index 27a2bfd..1b3794c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Inbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_TaskInfoService/TaskService_Inbound.cs"
@@ -975,6 +975,10 @@
                 {
                     item.Count -= count.Count;
                 }
+                if (item.Count >= 50 && count?.Count<=2)
+                {
+                    return item.RoadwayNo;
+                }
             }
             return locationCounts.Where(x => x.Count > 0).OrderByDescending(x => x.Count).FirstOrDefault()?.RoadwayNo ?? "";
         }
@@ -2069,7 +2073,7 @@
                         NextAddress = "",
                         PalletCode = item.BarCode,
                         Roadway = "",
-                        SourceAddress = CheckPointCode.AGVStationCode,
+                        SourceAddress = item.PointCode.StartsWith("YS") ? CheckPointCode.AGVStationCode : CheckPointCode.MESPointCode,
                         TargetAddress = "",
                         TaskType = 0,
                         TaskStatus = TaskStatusEnum.New.ObjToInt(),

--
Gitblit v1.9.3