From 52241e80f87805d69b5682469f7f98fb14cbbf18 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 02 七月 2021 10:19:37 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/service/CommonService.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index efac3c0..a4df5c5 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -112,7 +112,7 @@
             case 110:
                 whsType = 4;
                 break;
-            case 306:
+            case 301:
                 whsType = 5;
                 break;
             default:
@@ -252,9 +252,17 @@
             if (Utils.isShallowLoc(slaveProperties, curRow)) {
                 Integer deepRow = Utils.getDeepRow(slaveProperties, curRow);
                 locMast = locMastService.queryFreeLocMast(deepRow, locTypeDto.getLocType1());
+                // 鍥犲簱浣嶇Щ杞�侀渶棰勭暀绌哄簱浣�
+                if (!locMastService.checkEmptyCount(locMast)) {
+                    locMast = null;
+                }
             }
             if (Cools.isEmpty(locMast)) {
                 locMast = locMastService.queryFreeLocMast(curRow, locTypeDto.getLocType1());
+                // 鍥犲簱浣嶇Щ杞�侀渶棰勭暀绌哄簱浣�
+                if (!locMastService.checkEmptyCount(locMast)) {
+                    locMast = null;
+                }
             }
         }
         if (Cools.isEmpty(locMast)) {
@@ -296,4 +304,4 @@
         }
     }
 
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1