Commit 975eb390 authored by litengwei's avatar litengwei

bug修改

parent 382144d8
......@@ -25,7 +25,7 @@ public class ApplicationStartListener implements ApplicationListener<ContextRefr
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
try{
if(event.getApplicationContext().getParent().getParent() == null){
if(event.getApplicationContext().getParent().getParent().getParent() == null){
iPlanTaskService.initPlanStatusOrGenDate();
pointService.initPointStatus();
jobService.initScheduler();
......
......@@ -172,17 +172,22 @@ public class JobService implements IJobService {
if (PlanTaskFinishStatusEnum.NOTSTARTED.getValue() == planTask.getFinishStatus()) {
if (beginTime.getTime() > timestamp) {
planTaskAddJob(planTask);
log.error("项目初始化未开始监听器任务监控========");
} else if (beginTime.getTime() < timestamp && endTime.getTime() > timestamp) {
log.error("项目初始化进行中监听器任务监控========");
planTaskMapper.updatePlanTaskList(planTask.getPlanId(), PlanTaskFinishStatusEnum.NOTSTARTED.getValue(), PlanTaskFinishStatusEnum.UNDERWAY.getValue());
planTaskAddJob(planTask);
} else if (endTime.getTime() < timestamp) {
log.error("修改为漏检生成记录========");
updatePlanTaskAndDetailStatus(planTask);
}
} else {
if (endTime.getTime() < timestamp) {
log.error("项目初始化进行中监听器任务监控2222========");
planTaskMapper.updatePlanTaskList(planTask.getPlanId(), PlanTaskFinishStatusEnum.NOTSTARTED.getValue(), PlanTaskFinishStatusEnum.UNDERWAY.getValue());
planTaskAddJob(planTask);
} else {
log.error("修改为漏检生成记录2222========");
updatePlanTaskAndDetailStatus(planTask);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment