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}