|
|
@ -41,8 +41,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, TaskEntity> impleme |
|
|
|
// 查询所有巡检任务
|
|
|
|
// 查询所有巡检任务
|
|
|
|
List<TaskEntity> tasks = this.list(new LambdaQueryWrapper<TaskEntity>() {{ |
|
|
|
List<TaskEntity> tasks = this.list(new LambdaQueryWrapper<TaskEntity>() {{ |
|
|
|
ge(TaskEntity::getPlanStartTime, start) |
|
|
|
ge(TaskEntity::getPlanStartTime, start) |
|
|
|
.le(TaskEntity::getPlanStartTime, end) |
|
|
|
.le(TaskEntity::getPlanStartTime, end) |
|
|
|
.in(TaskEntity::getCreateDept, areas); |
|
|
|
.in(TaskEntity::getCreateDept, areas); |
|
|
|
}}); |
|
|
|
}}); |
|
|
|
if(CollectionUtil.isEmpty(tasks)){ |
|
|
|
if(CollectionUtil.isEmpty(tasks)){ |
|
|
|
return task; |
|
|
|
return task; |
|
|
|