Commit eb11d56a by huangfusuper

修正邮箱告警有不对的地方

parent 68a0e9f2
......@@ -63,7 +63,7 @@ public class RunRecordingAndJobTaskServiceImpl implements RunRecordingAndJobTask
* @throws Exception
*/
@Override
public void saveRunRecordingAndTask(JobTask jobTask,boolean repair) throws UnknownHostException, ParseException {
public void saveRunRecordingAndTask(JobTask jobTask,boolean repair) throws UnknownHostException, ParseException {
log.info("-----------saveRunRecordingAndTask start【虚节点保存服务】--------------");
//根据 map_flow_id查询当前的版本的工作流 使用祝工作流的runId 保存到执行记录表和任务表
Integer mapFlowId = jobTask.getMapFlowId();
......
package com.byit.thread.helper;
import com.byit.enums.EmailEnum;
import com.byit.enums.NodeRunStatusPropertyEnum;
import com.byit.enums.RunRecordingEnum;
import com.byit.event.EndFlowEvent;
......@@ -68,6 +69,7 @@ public class ClosingExampleThreadRunHelper extends BaseThreadRunHelper implement
runRecording.setFlowRunResult(runCode);
log.debug("----------------扫描到有完结的运行实例{},{}-------------",runCode, RunRecordingEnum.FLOW_STATUS_IS_END.getCode());
runRecording.setFlowStatus(RunRecordingEnum.FLOW_STATUS_IS_END.getCode());
runRecording.setIsAlarm(EmailEnum.IS_ALARM_NO.getCode());
runRecording.setEndTime(new Date());
runRecordingService.updateRunRecordingById(runRecording);
applicationEventPublisher.publishEvent(new EndFlowEvent(this,flowId));
......@@ -76,6 +78,8 @@ public class ClosingExampleThreadRunHelper extends BaseThreadRunHelper implement
String reRunId = runRecording.getReRunId();
Integer flowId1 = runRecording.getFlowId();
RunRecording runRecordingByFlowIdAndRunId = runRecordingService.findRunRecordingByFlowIdAndRunId(flowId1, reRunId);
runRecordingByFlowIdAndRunId.setIsAlarm(EmailEnum.IS_ALARM_NO.getCode());
runRecordingByFlowIdAndRunId.setEndTime(new Date());
runRecordingByFlowIdAndRunId.setFlowStatus(RunRecordingEnum.FLOW_STATUS_IS_END.getCode());
runRecordingService.updateRunRecordingById(runRecordingByFlowIdAndRunId);
}
......
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