From 318cd2e6c1f6764a0147af5b8d35366d6950611d Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期一, 16 六月 2025 09:22:39 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   36 +++++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 683625a..08ac542 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -235,21 +235,21 @@
                                 throw new CoolException("鏇存柊plc绔欑偣淇℃伅澶辫触");
                             }
 
-                            // led 鍏ュ簱淇℃伅鏄剧ず
-                            if (ledThread != null) {
-                                // 鍛戒护闆嗗悎
-                                List<LedCommand> commands = new ArrayList<>();
-                                // 缁勮鍛戒护
-                                LedCommand ledCommand = new LedCommand();
-                                ledCommand.setWorkNo(dto.getWorkNo());
-                                ledCommand.setIoType(1);
-                                ledCommand.setTitle("鍏ㄦ澘鍏ュ簱");
-                                ledCommand.setLocNo(dto.getLocNo());
-                                ledCommand.setStaNo(dto.getStaNo());
-                                commands.add(ledCommand);
-                                MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(3, commands));
-//                                ledThread.errorReset();
-                            }
+//                            // led 鍏ュ簱淇℃伅鏄剧ず
+//                            if (ledThread != null) {
+//                                // 鍛戒护闆嗗悎
+//                                List<LedCommand> commands = new ArrayList<>();
+//                                // 缁勮鍛戒护
+//                                LedCommand ledCommand = new LedCommand();
+//                                ledCommand.setWorkNo(dto.getWorkNo());
+//                                ledCommand.setIoType(1);
+//                                ledCommand.setTitle("鍏ㄦ澘鍏ュ簱");
+//                                ledCommand.setLocNo(dto.getLocNo());
+//                                ledCommand.setStaNo(dto.getStaNo());
+//                                commands.add(ledCommand);
+//                                MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(3, commands));
+////                                ledThread.errorReset();
+//                            }
                         } else {
                             News.error(""+mark+" - 5"+" - 璇锋眰鎺ュ彛澶辫触锛侊紒锛乽rl锛歿}锛況equest锛歿}锛況esponse锛歿}", wmsUrl + "/rpc/pakin/loc/v1", JSON.toJSONString(param), response);
 //                            staProtocol.setWorkNo((short)9992);
@@ -2017,6 +2017,11 @@
                         continue;
                     }
 
+                    Integer ctnType = 1;
+                    if (ctnType.equals(loc.getCtnType())) {
+                        continue;
+                    }
+
                     String sourceLocNo = sourceLoc.getLocNo();
                     String locNo = loc.getLocNo();
 
@@ -2071,6 +2076,7 @@
                     // 淇敼鐩爣搴撲綅鐘舵��
                     if (loc.getLocSts().equals("O")) {
                         loc.setLocSts("S"); // S.鍏ュ簱棰勭害
+                        loc.setCtnType(1);
                         loc.setModiTime(new Date());
                         if (!locMastService.updateById(loc)) {
                             throw new CoolException("鏇存柊鐩爣搴撲綅鐘舵�佸け璐�");

--
Gitblit v1.9.1