From 5b7ddbbd288579ccc54d1977803fcecab38e84aa Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期四, 27 十一月 2025 11:20:41 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
index 8eab94f..49ca615 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -542,7 +542,7 @@
 
     @Override
     @Transactional
-    public void combAuto(CombParam param, Long userId) {
+    public void comb(CombParam param, Long userId) {
         if (Cools.isEmpty(param.getBarcode(), param.getCombMats())) {
             throw new CoolException(BaseRes.PARAM);
         }
@@ -684,7 +684,7 @@
 
     @Override
     @Transactional
-    public void comb(CombParam param, Long userId) {
+    public void combAuto(CombParam param, Long userId) {
         if (Cools.isEmpty(param.getBarcode(), param.getCombMats())) {
             throw new CoolException(BaseRes.PARAM);
         }
@@ -716,11 +716,18 @@
         String orderNo = null;
         for (CombParam.CombMat combMat : param.getCombMats()) {
             List<OrderDetlPakin> orderDetlPakins = orderDetlPakinService.selectList(new EntityWrapper<OrderDetlPakin>()
-                    .eq("matnr", combMat.getMatnr()).eq("boxType3", combMat.getOrderNo())
+                    .eq("matnr", combMat.getMatnr()).eq("box_type3", combMat.getOrderNo())
                     .eq("standby1", combMat.getStandby1()).eq("standby2", combMat.getStandby2())
                     .eq("standby3", combMat.getStandby3()));
             if (orderDetlPakins.size() > 0) {
                 orderNo = orderDetlPakins.get(0).getOrderNo();
+                combMat.setBoxType1(orderDetlPakins.get(0).getBoxType1());
+                combMat.setBoxType2(orderDetlPakins.get(0).getBoxType2());
+                combMat.setBoxType3(orderDetlPakins.get(0).getBoxType3());
+                combMat.setMemo(orderDetlPakins.get(0).getMemo());
+                combMat.setSupp(orderDetlPakins.get(0).getSupp());
+                combMat.setSuppCode(orderDetlPakins.get(0).getSuppCode());
+                combMat.setManu(orderDetlPakins.get(0).getManu());//浠撳簱缂栫爜
             } else {
                 throw new CoolException("鏈煡璇㈠埌鐩稿叧璁㈠崟===>>" + param.getBarcode());
             }
@@ -752,6 +759,10 @@
                     elem.getBoxType1(),elem.getBoxType2(),elem.getBoxType3(), elem.getAnfme());
             DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(),elem.getBrand(),elem.getStandby1(),elem.getStandby2(),elem.getStandby3(),
                     elem.getBoxType1(),elem.getBoxType2(),elem.getBoxType3(),  elem.getAnfme());
+            detlDto.setMemo(elem.getMemo());
+            detlDto.setSupp(elem.getSupp());
+            detlDto.setManu(elem.getManu());
+            detlDto.setSuppCode(elem.getSuppCode());
             if (DetlDto.has(detlDtos, detlDto)) {
                 DetlDto one = DetlDto.findDto(detlDtos, detlDto);
                 assert one != null;
@@ -777,6 +788,10 @@
             waitPakin.setAppeTime(now);
             waitPakin.setModiUser(userId);
             waitPakin.setModiTime(now);
+            waitPakin.setMemo(detlDto.getMemo());
+            waitPakin.setSupp(detlDto.getSupp());
+            waitPakin.setSuppCode(detlDto.getSuppCode());
+            waitPakin.setManu(detlDto.getManu());
             waitPakin.setStandby1(detlDto.getStandby1());
             waitPakin.setStandby2(detlDto.getStandby2());
             waitPakin.setStandby3(detlDto.getStandby3());

--
Gitblit v1.9.1