From b8975f62b72528006a840e63810f1644560ac4fd Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 23 四月 2022 09:58:18 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   26 +++++++++++++++-----------
 1 files changed, 15 insertions(+), 11 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 b546e16..22fcf46 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -13,6 +13,7 @@
 import com.zy.asrs.entity.param.MobileAdjustParam;
 import com.zy.asrs.entity.param.OpenOrderPakinParam;
 import com.zy.asrs.service.*;
+import com.zy.asrs.utils.MatUtils;
 import com.zy.common.constant.MesConstant;
 import com.zy.common.entity.Parameter;
 import com.zy.common.model.DetlDto;
@@ -273,7 +274,10 @@
                         throw new CoolException(elem.getMatnr() + "鏉$爜宸蹭笅绾匡紝璇锋鏌ワ紒");
                     }
                 }
-                DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme());
+                Mat analyse = MatUtils.analyseMat(elem.getMatnr());
+                // 鏉$爜銆佺墿鏂欎唬鐮併�佸簭鍒楀彿銆佹暟閲�
+                DetlDto detlDto = new DetlDto(elem.getMatnr(), analyse.getMatnr(), analyse.getBarcode(), elem.getAnfme());
+//                DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme());
                 if (DetlDto.has(detlDtos, detlDto)) {
                     DetlDto one = DetlDto.find(detlDtos, detlDto.getMatnr(), detlDto.getBatch());
                     assert one != null;
@@ -289,7 +293,7 @@
                 mesCombParam.setCombTime(DateUtils.convert(now));
                 mesCombParam.setLgort("5008");
                 for (DetlDto detlDto : detlDtos) {
-                    mesCombParam.getList().add(new MesCombParam.Detl(detlDto.getMatnr(), detlDto.getAnfme()));
+                    mesCombParam.getList().add(new MesCombParam.Detl(detlDto.getOrderNo(), detlDto.getAnfme()));
                 }
                 String response = "";
                 boolean success = false;
@@ -316,15 +320,15 @@
                 } finally {
                     try {
                         // 淇濆瓨鎺ュ彛鏃ュ織
-//                        apiLogService.save(
-//                                "鎵撳寘涓嬬嚎甯墭涓婃姤",
-//                                MesConstant.URL + MesConstant.PACK_DOWN_URL,
-//                                null,
-//                                "127.0.0.1",
-//                                JSON.toJSONString(mesCombParam),
-//                                response,
-//                                success
-//                        );
+                        apiLogService.save(
+                                "鎵撳寘涓嬬嚎甯墭涓婃姤",
+                                MesConstant.URL + MesConstant.PACK_DOWN_URL,
+                                null,
+                                "127.0.0.1",
+                                JSON.toJSONString(mesCombParam),
+                                response,
+                                success
+                        );
                     } catch (Exception e) { log.error("", e); }
                 }
 

--
Gitblit v1.9.1