From 1188c0fb48a0e982109da19ec44e8e3100cf1b7e Mon Sep 17 00:00:00 2001 From: xuyang <748613696@qq.com> Date: Thu, 28 Dec 2023 14:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/njcn/system/service/impl/TimersServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/TimersServiceImpl.java b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/TimersServiceImpl.java index fd0fb27e6..db449f6a7 100644 --- a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/TimersServiceImpl.java +++ b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/TimersServiceImpl.java @@ -31,6 +31,7 @@ import org.springframework.transaction.annotation.Transactional; import java.util.Collection; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.stream.Collectors; /** @@ -57,6 +58,9 @@ public class TimersServiceImpl extends ServiceImpl impleme } } + if (!Objects.isNull(queryParam.getSearchState())){ + queryWrapper.eq("job_status", queryParam.getSearchState()); + } queryWrapper.orderBy(true, true, "sys_timers.create_time"); queryWrapper.ne("sys_timers.state", DataStateEnum.DELETED.getCode()); //初始化分页数据