From 8ef2bb5e46d84594e6ed632c07ea0b47a1bf6c4d Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 11 十二月 2024 16:15:17 +0800
Subject: [PATCH] #path similarity

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MainServiceImpl.java |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MainServiceImpl.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MainServiceImpl.java
index 1ac7110..87f2518 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MainServiceImpl.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/service/impl/MainServiceImpl.java
@@ -462,6 +462,7 @@
 
                 //灏嗗湴鍥炬暟鎹瓨鍏edis
                 redisUtil.set(DeviceRedisConstant.MAP + lev, JSON.toJSONString(map));
+                redisUtil.set(DeviceRedisConstant.BASE_MAP + lev, JSON.toJSONString(map));
             }
         } catch (Exception e) {
             e.printStackTrace();
@@ -950,19 +951,22 @@
                 } else {
                     staProtocol = staProtocol.clone();
                 }
-                if (!staProtocol.isOutEnable()){
-                    continue;
-                }
                 String taskNo = "0";
-                if (0 != staProtocol.getWorkNo()){
-                    Motion motion = motionService.getOne(new LambdaQueryWrapper<Motion>().eq(Motion::getMotionCtg, 9).eq(Motion::getTemp, staProtocol.getWorkNo()));
-                    // 鑾峰彇宸ヤ綔妗f暟鎹�
-                    Task task = taskService.getOne(new LambdaQueryWrapper<Task>().eq(Task::getTaskNo, motion.getTaskNo()));
-                    if (null == task) {
-                        continue;
+                if (staProtocol.isOutEnable() && staProtocol.getSiteId() == 31001 ){
+                    if (0 != staProtocol.getWorkNo()){
+                        Motion motion = motionService.getOne(new LambdaQueryWrapper<Motion>().eq(Motion::getMotionCtg, 9).eq(Motion::getTemp, staProtocol.getWorkNo()));
+                        // 鑾峰彇宸ヤ綔妗f暟鎹�
+                        Task task = taskService.getOne(new LambdaQueryWrapper<Task>().eq(Task::getTaskNo, motion.getTaskNo()));
+                        if (null == task) {
+                            continue;
+                        }
+                        taskNo = task.getWmsTaskNo();
                     }
-                    taskNo = task.getWmsTaskNo();
+
+                } else if (staProtocol.isInEnable() && staProtocol.getSiteId() == 31002) {
+                    taskNo = staProtocol.getStaNo().toString();
                 }
+
                 try {
                     //鑾峰彇WMS鍦板潃
                     Dict dict = dictService.getOne(new LambdaQueryWrapper<Dict>().eq(Dict::getFlag, "WMS_URL").eq(Dict::getStatus, 1));
@@ -987,6 +991,7 @@
                 } catch (Exception e) {
                     e.printStackTrace();
                 }
+
             }
         }
     }

--
Gitblit v1.9.1