From e9a4418c14ef68fb454300b092c413e8df259ec2 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期六, 13 四月 2024 11:50:56 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java
index 04eb896..4ec07d8 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java
@@ -3,6 +3,7 @@
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.zy.asrs.wcs.core.service.BusService;
 import com.zy.asrs.wcs.core.service.TaskCtgService;
 import com.zy.asrs.wcs.core.service.TaskStsService;
@@ -334,7 +335,9 @@
 
     public String getTaskSts$(){
         TaskStsService service = SpringUtils.getBean(TaskStsService.class);
-        TaskSts taskSts = service.getById(this.taskSts);
+        TaskSts taskSts = service.getOne(new LambdaQueryWrapper<TaskSts>()
+                .eq(TaskSts::getUuid, String.valueOf(this.taskSts))
+                .eq(TaskSts::getHostId, this.hostId));
         if (!Cools.isEmpty(taskSts)){
             return String.valueOf(taskSts.getName());
         }

--
Gitblit v1.9.1