From a8c86d21d112ede774d9fd0bae6ff228b8dd9918 Mon Sep 17 00:00:00 2001
From: ytfl <ytfl@qq.com>
Date: 星期六, 16 八月 2025 11:03:55 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 5b7f399..35e3521 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -233,6 +233,12 @@
                                     .eq("loc_no", dto.getLocNo()));
 
                             short staNo = dto.getStaNo().shortValue();
+
+                            int sourceStaNo = dto.getSourceStaNo();
+                            if (sourceStaNo == 1007) {
+                                staNo = 2002;
+                            }
+
                             if (inSta.getStaNo() == 1002) {
                                 staNo = 2002;
                             }
@@ -1207,7 +1213,7 @@
 //                    continue;
                 }
                 // 鍒ゆ柇鍫嗗灈鏈哄嚭搴撶珯鐘舵��
-                if (staProtocol.isAutoing()  && staDetl.getCanouting() != null && staDetl.getCanouting().equals("Y")) {
+                if (staProtocol.isAutoing() && !staProtocol.isLoading() && staDetl.getCanouting() != null && staDetl.getCanouting().equals("Y")) {
 
                     //鏍规嵁鍙傛暟鍒ゆ柇鏄惁鏍¢獙鍙嚭淇″彿
                     String crnOutVerifyOut = "Y";
@@ -1219,10 +1225,6 @@
 
                     if (crnOutVerifyOut.equals("Y")) {
                         if (!staProtocol.isOutEnable()) {
-                            continue;
-                        }
-
-                        if (staProtocol.isLoading()) {
                             continue;
                         }
 

--
Gitblit v1.9.1