|
|
@ -125,7 +125,8 @@ public class HiddenDangerPlanSchedule { |
|
|
|
// 已经生成过任务的计划
|
|
|
|
// 已经生成过任务的计划
|
|
|
|
List<HDPlanEntity> existTaskPlanList = hdPlanService.list(Wrappers.<HDPlanEntity>lambdaQuery() |
|
|
|
List<HDPlanEntity> existTaskPlanList = hdPlanService.list(Wrappers.<HDPlanEntity>lambdaQuery() |
|
|
|
.eq(HDPlanEntity::getStatus, Constants.PlanStatusEnum.HAVE.getStatus()) |
|
|
|
.eq(HDPlanEntity::getStatus, Constants.PlanStatusEnum.HAVE.getStatus()) |
|
|
|
.eq(HDPlanEntity::getNextGenerateTaskTime,LocalDateTime.of(currentDate,LocalTime.MIN)) |
|
|
|
.ge(HDPlanEntity::getNextGenerateTaskTime,LocalDateTime.of(currentDate,LocalTime.MIN)) |
|
|
|
|
|
|
|
.le(HDPlanEntity::getNextGenerateTaskTime,LocalDateTime.of(currentDate,LocalTime.MAX)) |
|
|
|
.eq(HDPlanEntity::getEnable,true) |
|
|
|
.eq(HDPlanEntity::getEnable,true) |
|
|
|
); |
|
|
|
); |
|
|
|
if(CollectionUtil.isNotEmpty(existTaskPlanList)) { |
|
|
|
if(CollectionUtil.isNotEmpty(existTaskPlanList)) { |
|
|
|