From f13ca3de8d05626a0847d2651b8cedbb32da5927 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 11 七月 2023 11:24:10 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
index 6e3e7d5..c2afe90 100644
--- a/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -447,6 +447,7 @@
     @Override
     @Transactional
     public void stockOut(BasDevp staNo, List<LocDetlDto> locDetlDtos, IoWorkType ioWorkType, Long userId) {
+        Integer basDevp = staNo.getDevNo();
         Date now = new Date();
         // 鍚堝苟鍚岀被椤�
         Set<String> locNos = new HashSet<>();
@@ -624,13 +625,27 @@
             //-----------------2023.6.2鍑哄簱鍏煎浠g爜-----------------------
             if (ioType!=107){
                 List<LocDetl> locDetls = locDetlService.selectByLocNo(locMast.getLocNo());
-                if (locMast.getLocType2() == 1 && locDetls.size() > 1) {
-                    //鍗曞搧鍖哄煙鍑哄簱鐗╂枡澶т簬1绉嶏紝寮哄埗鍙樻垚101鍏ㄦ澘鍑哄簱
-                    ioType = 101;
+                //if (locMast.getLocType2() == 1 && locDetls.size() > 1) {
+                //    //鍗曞搧鍖哄煙鍑哄簱鐗╂枡澶т簬1绉嶏紝寮哄埗鍙樻垚101鍏ㄦ澘鍑哄簱
+                //    ioType = 101;
+                //    if (staNo.getDevNo()==300){
+                //        staNo.setDevNo(200);
+                //    }
+                //}
+                if (ioType == 101) {
                     if (staNo.getDevNo()==300){
-                        staNo.setDevNo(200);
+                        if(locMast.getCrnNo() == 1) {
+                            staNo.setDevNo(100);
+                        } else {
+                            staNo.setDevNo(200);
+                        }
+
                     }
+                } else {
+                    staNo.setDevNo(basDevp);
                 }
+
+
             }
             //-----------------2023.6.2鍑哄簱鍏煎浠g爜end-----------------------
 

--
Gitblit v1.9.1