Browse Source

# 隐患排查计划生成任务逻辑修改

zhongwei
haungxing 11 months ago
parent
commit
d2af1de450
  1. 3
      hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/hiddenDanger/schedule/HiddenDangerPlanSchedule.java

3
hzims-service/safeproduct/src/main/java/com/hnac/hzims/safeproduct/hiddenDanger/schedule/HiddenDangerPlanSchedule.java

@ -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)) {

Loading…
Cancel
Save