From 2dacb0ac0bef27c1cdb7e9fbac40f9b559a8e6f8 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Wed, 4 Sep 2024 10:06:35 +0800 Subject: [PATCH] =?UTF-8?q?#=E5=B7=A1=E6=A3=80=E5=88=97=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2mapper=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/scheduled/service/inspect/impl/TaskServiceImpl.java | 4 ++-- .../src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/inspect/impl/TaskServiceImpl.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/inspect/impl/TaskServiceImpl.java index 7191f38..826224b 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/inspect/impl/TaskServiceImpl.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/inspect/impl/TaskServiceImpl.java @@ -41,8 +41,8 @@ public class TaskServiceImpl extends ServiceImpl impleme // 查询所有巡检任务 List tasks = this.list(new LambdaQueryWrapper() {{ ge(TaskEntity::getPlanStartTime, start) - .le(TaskEntity::getPlanStartTime, end) - .in(TaskEntity::getCreateDept, areas); + .le(TaskEntity::getPlanStartTime, end) + .in(TaskEntity::getCreateDept, areas); }}); if(CollectionUtil.isEmpty(tasks)){ return task; diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml index 7ed3974..abc6520 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml @@ -16,7 +16,7 @@ and t.PLAN_START_TIME >= #{task.planStartTime} - and t.PLAN_START_TIME >= #{task.planStartTime} + and t.PLAN_START_TIME <= #{task.planStartTimeEnd} and t.PLAN_END_TIME <= #{task.planEndTime}