From af17595ea094b162d3b90279f140cbdb3da1c52b Mon Sep 17 00:00:00 2001
From: zwl <zwl123>
Date: 星期六, 07 十月 2023 15:25:37 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/sxlktasrs' into sxlktasrs

---
 src/main/java/com/zy/common/service/CommonService.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index eb9fdc5..9aa21cb 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -105,6 +105,7 @@
         } else if (sourceStaNo > 299){
             whsType = 3;
         }
+
         // 鐩爣鍫嗗灈鏈哄彿
         int crnNo = whsType;
         if (!basCrnpService.checkSiteError(crnNo, true)){
@@ -198,7 +199,7 @@
 
         // 1.褰撴绱㈠簱鎺掍负娴呭簱浣嶆帓鏃讹紝浼樺厛瀵绘壘褰撳墠搴撴帓鐨勬繁搴撲綅鎺�
         if (locMast == null) {
-            if ((whsType==2 || whsType==4) && Utils.isShallowLoc(slaveProperties, curRow)) {
+            if ( Utils.isShallowLoc(slaveProperties, curRow)) {
                 Integer deepRow = Utils.getDeepRow(slaveProperties, curRow);
                 locMast = locMastService.queryFreeLocMast(deepRow, locTypeDto.getLocType1());
                 // todo:luxiaotao 濡傛灉鐢ㄦ祬鎺掓壘鍒扮殑娣卞簱浣嶏紝閭d箞鍒欓渶瑕佸垽鏂繖涓繁搴撲綅瀵瑰簲鐨勬祬搴撲綅鏄惁鏈夎揣锛團銆乆銆丏锛�
@@ -214,14 +215,14 @@
                     locMast = null;
                 }
                 // 鐩爣搴撲綅 ===>> 娴呭簱浣嶏紝 鍒欐牎楠屽叾娣卞簱浣嶆槸鍚︿负 F D X
-                if ((whsType==2 || whsType==4) && null != locMast && Utils.isShallowLoc(slaveProperties, locMast.getLocNo())) {
+                if (null != locMast && Utils.isShallowLoc(slaveProperties, locMast.getLocNo())) {
                     LocMast deepLoc = locMastService.selectById(Utils.getDeepLoc(slaveProperties, locMast.getLocNo()));
                     if (!deepLoc.getLocSts().equals("F") && !deepLoc.getLocSts().equals("D") && !deepLoc.getLocSts().equals("X")) {
                         locMast = null;
                     }
                 }
                 // 鐩爣搴撲綅 ===>> 娣卞簱浣嶏紝 鍒欐牎楠屽叾娴呭簱浣嶆槸鍚︿负 O
-                if ((whsType==2 || whsType==4) && null != locMast && Utils.isDeepLoc(slaveProperties, locMast.getLocNo())) {
+                if (null != locMast && Utils.isDeepLoc(slaveProperties, locMast.getLocNo())) {
                     LocMast shallowLoc = locMastService.selectById(Utils.getShallowLoc(slaveProperties, locMast.getLocNo()));
                     if (!shallowLoc.getLocSts().equals("O")) {
                         locMast = null;
@@ -246,6 +247,7 @@
             log.error("绯荤粺娌℃湁绌哄簱浣嶏紒锛侊紒 灏哄瑙勬牸锛� {}锛� 杞娆℃暟锛歿}", JSON.toJSONString(locTypeDto), times);
             throw new CoolException("娌℃湁绌哄簱浣�");
         }
+
         String locNo = locMast.getLocNo();
 
         // 鐢熸垚宸ヤ綔鍙�

--
Gitblit v1.9.1