From e3b9215ac5e9e2f430c3fe356549f18363d6dd6a Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 14 十一月 2023 09:05:30 +0800
Subject: [PATCH] # mat_type_in

---
 src/main/java/com/zy/common/service/CommonService.java |    6 ++++--
 1 files changed, 4 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 f46b33e..84ee80d 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;//鐗╂枡绫诲瀷
@@ -178,7 +178,9 @@
                     throw new CoolException("娣锋斁鐗╂枡绫诲瀷涓嶄竴鑷�");
                 }
             }
-
+            if (!matTypeIn.equals(0)) {
+                matType = matTypeIn;
+            }
             if (matNos.size() > 1 && matType == 1) {
                 //鐗╂枡涓哄崟鍝佺被鍨嬶紝涓旂墿鏂欑绫昏秴杩�1(瀹為檯涓洪珮棰戞贩鏀�)锛屽垯绂佹鍏ュ簱
                 throw new CoolException("鐗╂枡绫诲瀷鍜屽疄闄呯绫讳笉涓�鑷�");

--
Gitblit v1.9.1