From 00e990fd2ffa6bdf9ba748bd2f43a76a4eef2c49 Mon Sep 17 00:00:00 2001
From: pjb <123456>
Date: 星期四, 26 六月 2025 10:36:44 +0800
Subject: [PATCH] 日志ID重复问题

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
index 555f5e6..e9621aa 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/MobileServiceImpl.java
@@ -117,8 +117,9 @@
             waitPakinService.comb(pakin);
         });
 
+
         // UTC鍏ュ簱鍗曟嵁(闈炲钩搴撳叆搴撳崟鎹�)
-        if (order.getOrderType() != OrderType.PK_IN_ORDER.id) {
+        if (!ordersParam.getInType().equals(OrderType.PK_IN_ORDER.id)) {
             /*** 椤圭洰涓嬪彂娴佺▼ * 1. PDA缁勬嫋閫氱煡妗�* 2. 鐢熸垚浠诲姟妗�* 3. 閫氳繃瀹氭椂浠诲姟涓嬪彂鑷矱SS** */
             //鐢熸垚浠诲姟妗�
             GeneratePakInParam generatePakInParam = new GeneratePakInParam();
@@ -204,6 +205,7 @@
             WaitPakinLog pakinLog = new WaitPakinLog();
             BeanUtils.copyProperties(waitPakin, pakinLog);
             pakinLog.setIoStatus(1);
+            pakinLog.setId(null);
             if (!waitPakinLogService.saveOrUpdate(pakinLog)) {
                 throw new CoolException("缁勬嫋鍘嗗彶妗f洿鏂板け璐�");
             }
@@ -224,6 +226,7 @@
             order.setOrderSettle(OrderSettleType.COMPLETE.val());
             OrderLog orderLog = new OrderLog();
             BeanUtils.copyProperties(order, orderLog);
+            orderLog.setId(null);
             if (!orderLogService.save(orderLog)) {
                 throw new CoolException("鍘嗗彶鍗曟嵁鏇存柊澶辫触锛侊紒");
             }
@@ -241,6 +244,7 @@
             BeanUtils.copyProperties(delt, detlLog);
             detlLog.setQty(delt.getWorkQty());
             detlLog.setWorkQty(0.0);
+            detlLog.setId(null);
             detlLogs.add(detlLog);
         });
 

--
Gitblit v1.9.1