From ffcf87710c84ba534ae9298e6932067536b53e3d Mon Sep 17 00:00:00 2001
From: bfwms <1>
Date: 星期六, 17 八月 2024 09:53:08 +0800
Subject: [PATCH] #

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

diff --git a/src/main/java/com/zy/common/service/CommonService.java b/src/main/java/com/zy/common/service/CommonService.java
index f46b33e..9090ac1 100644
--- a/src/main/java/com/zy/common/service/CommonService.java
+++ b/src/main/java/com/zy/common/service/CommonService.java
@@ -106,7 +106,7 @@
      * @param matNos      鐗╂枡鍙烽泦鍚�
      * @return locNo 妫�绱㈠埌鐨勫簱浣嶅彿
      */
-    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto) {
+    public StartupDto getLocNo(Integer whsType, Integer staDescId, Integer sourceStaNo, List<String> matNos, LocTypeDto locTypeDto, Integer matTypeIn) {
         int start;
         int end;
         Integer matType = null;//鐗╂枡绫诲瀷
@@ -117,6 +117,7 @@
         ArrayList<Integer> rows = new ArrayList<>();
         switch (sourceStaNo) {
             case 103://103鍏ュ簱绔�
+            case 113://103鍏ュ簱绔�
                 whsType = 1;
                 start = 1;
                 end = 14;
@@ -133,6 +134,7 @@
                 crnNo = 1;
                 break;
             case 203://203鍏ュ簱绔�
+            case 213://203鍏ュ簱绔�
                 whsType = 2;
                 start = 8;
                 end = 21;
@@ -178,6 +180,11 @@
                     throw new CoolException("娣锋斁鐗╂枡绫诲瀷涓嶄竴鑷�");
                 }
             }
+            if (!Cools.isEmpty(matTypeIn)) {
+                if (!matTypeIn.equals(0)) {
+                    matType = matTypeIn;
+                }
+            }
 
             if (matNos.size() > 1 && matType == 1) {
                 //鐗╂枡涓哄崟鍝佺被鍨嬶紝涓旂墿鏂欑绫昏秴杩�1(瀹為檯涓洪珮棰戞贩鏀�)锛屽垯绂佹鍏ュ簱

--
Gitblit v1.9.1