From 2e2e569b9612fa76eb5fb7f32d88624663c133e9 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 26 六月 2025 14:45:33 +0800
Subject: [PATCH] 清除托盘码站点

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/PlatformServiceImpl.java    |    1 +
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java                    |    1 +
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java |    8 +++-----
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java
index 2f98da3..b734f6c 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/manage/OutManage.java
@@ -1437,6 +1437,7 @@
                         cacheSite.setSiteStatus(CacheSiteStatusType.O.id);
                         cacheSite.setOrderId(null);
                         cacheSite.setOrderNo(null);
+                        cacheSite.setBarcode(null);
                         cacheSite.setUpdateTime(new Date());
                         if (!cacheSiteService.updateById(cacheSite)) {
                             throw new CoolException("缂撳瓨绔欐竻绌哄け璐�");
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java
index fddb14f..96005af 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java
@@ -7,11 +7,8 @@
 import com.zy.asrs.wms.asrs.entity.Wave;
 import com.zy.asrs.wms.asrs.mapper.OrderNoRuleMapper;
 import com.zy.asrs.wms.asrs.entity.OrderNoRule;
-import com.zy.asrs.wms.asrs.service.OrderNoRuleService;
+import com.zy.asrs.wms.asrs.service.*;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.zy.asrs.wms.asrs.service.OrderService;
-import com.zy.asrs.wms.asrs.service.OrderTypeService;
-import com.zy.asrs.wms.asrs.service.WaveService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
@@ -32,6 +29,8 @@
     private OrderTypeService orderTypeService;
     @Autowired
     private WaveService waveService;
+    @Autowired
+    private CacheSiteService cacheSiteService;
 
     @Override
     public String getOrderNo(Integer orderType) {
@@ -51,7 +50,6 @@
 
         SimpleDateFormat format = new SimpleDateFormat(pattern);
         buffer.append(format.format(new Date()));//璁㈠崟鏃堕棿
-
 
         if(orderType == 1 || orderType == 2) {
             //鏌ュ綋澶╄鍗曟暟閲�
diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/PlatformServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/PlatformServiceImpl.java
index 76f4ad9..c7775f7 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/PlatformServiceImpl.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/PlatformServiceImpl.java
@@ -150,6 +150,7 @@
                 cacheSite.setOrderId(null);
                 cacheSite.setOrderNo(null);
                 cacheSite.setPlatformId(null);
+                cacheSite.setBarcode(null);
                 cacheSite.setPlatformNo(null);
                 cacheSite.setUpdateTime(new Date());
                 if (!cacheSiteService.updateById(cacheSite)) {

--
Gitblit v1.9.1