From b8f984ff4dd2f0e47b9c400ddd470fd336929751 Mon Sep 17 00:00:00 2001 From: shiji <1913712590@qq.com> Date: Tue, 18 Jul 2023 17:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A8=A1=E5=9D=97=20?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=20=E4=BB=BB=E5=8A=A1=E7=8A=B6=E6=80=81bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/jeecg/modules/task/controller/TaskController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java index d1df724..2c71306 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/controller/TaskController.java @@ -128,8 +128,10 @@ public class TaskController extends JeecgController { if (task != null && task.getWorkStatus() != null && (task.getWorkStatus() == 0 || task.getWorkStatus() == 1)) { queryWrapper.in("work_status", 0, 1); } - if (task != null && task.getWorkStatus() != null && (task.getWorkStatus() == 2 || task.getWorkStatus() == 9)) { + else if (task != null && task.getWorkStatus() != null && (task.getWorkStatus() == 2 || task.getWorkStatus() == 9)) { queryWrapper.in("work_status", 2, 9); + } else if (task != null && task.getWorkStatus() != null){ + queryWrapper.eq("work_status", task.getWorkStatus()); } queryWrapper.orderByDesc("update_time"); IPage pageList = taskService.page(page, queryWrapper);