|
|
@ -2,6 +2,7 @@ package com.kms.yxgh.common.job.handler; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.kms.yxgh.common.domain.JobTask; |
|
|
|
import com.kms.yxgh.common.job.JobStatus; |
|
|
|
import com.kms.yxgh.df.dto.DfCheckingPlanContentDto; |
|
|
@ -40,6 +41,7 @@ public class DfCheckingPlanSendMessageHandler extends AbstractSendMessageHandler |
|
|
|
if (optional.isPresent()) { |
|
|
|
DfCheckingPlanContentDto content = optional.get(); |
|
|
|
if (CollectionUtil.isEmpty(content.getOperator())) { |
|
|
|
log.info("操作者为空, jobTask:[{}],content:[{}]", JSON.toJSONString(jobTask), JSON.toJSONString(content)); |
|
|
|
return Collections.emptyList(); |
|
|
|
} |
|
|
|
Date nextTime = getNextTime(dto, jobTask.getNextStartTime()); |
|
|
@ -48,6 +50,7 @@ public class DfCheckingPlanSendMessageHandler extends AbstractSendMessageHandler |
|
|
|
} else { |
|
|
|
jobTask.setStatus(JobStatus.FINISH.getCode()); |
|
|
|
} |
|
|
|
log.info("组装数据, jobTask:[{}],content:[{}]", JSON.toJSONString(jobTask), JSON.toJSONString(content)); |
|
|
|
return content.getOperator().stream() |
|
|
|
.map(operator -> { |
|
|
|
MsgVo msgVo = new MsgVo(); |
|
|
|