From 7803a1f8d35c9b80ae07f14c60f871a74a5aebd6 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 31 三月 2026 15:28:00 +0800
Subject: [PATCH] 更新领料判断

---
 项目代码/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