From 52d0ba5ae5b6b1c3dfd544e81e7ed33a6e3b6003 Mon Sep 17 00:00:00 2001
From: DESKTOP-LMJ82IJ\Eno <creaycat@gmail.com>
Date: 星期四, 26 十二月 2024 22:23:48 +0800
Subject: [PATCH] #波次播种列表不显示问题修复

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java
index e36b3d9..57d59bb 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/timer/TaskTimer.java
@@ -134,7 +134,7 @@
                 if (!taskService.updateById(task)) {
                     throw new CoolException("搴撳瓨鏇存柊澶辫触");
                 } else {
-                    //CacheSite 閲婃斁宸茶鍗犵敤鐨勯�氶亾
+                    //CacheSite 閲婃斁宸茶鍗犵敤鐨勯�氶亾 //fixme 鎾鍔熻兘瀹屾垚鍚庯紝闇�瑕佸皢杩欓噷娉ㄩ噴鎺�
                     List<TaskDetl> detls = taskDetlService.list(new LambdaQueryWrapper<TaskDetl>().eq(TaskDetl::getTaskId, task.getId()));
                     if (!Collections.isEmpty(detls)) {
                         List<Long> waveIds = detls.stream().map(TaskDetl::getWaveId).collect(Collectors.toList());
@@ -160,10 +160,9 @@
     private void executeTask1(Task task) {
         Long hostId = task.getHostId();
         //fixme 鏆傛椂鍏抽棴HOSTID
-//        Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId));
-        Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()));
+        Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId));
+//        Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()));
         if (loc == null) {
-            log.info("搴撲綅涓嶅瓨鍦�" + "=======>" + task.getTargetLoc());
             throw new CoolException("搴撲綅涓嶅瓨鍦�");
         }
 
@@ -223,6 +222,7 @@
         for (WaitPakin waitPakin : waitPakins) {
             WaitPakinLog waitPakinLog = new WaitPakinLog();
             waitPakinLog.sync(waitPakin);
+            waitPakinLog.setId(null);
             if (!waitPakinLogService.save(waitPakinLog)) {
                 throw new CoolException("缁勬墭閫氱煡妗h浆鍘嗗彶妗eけ璐�");
             }

--
Gitblit v1.9.1