Browse Source

# 解决日常维护定时任务未传任务表单进入工作流bug

zhongwei
haungxing 1 year ago
parent
commit
f7df1e3071
  1. 5
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskCreateTask.java

5
hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskCreateTask.java

@ -158,15 +158,14 @@ public class MaintenanceTaskCreateTask {
taskEntity.setProcessInstanceId(processInstanceId); taskEntity.setProcessInstanceId(processInstanceId);
taskService.updateById(taskEntity); taskService.updateById(taskEntity);
this.pushTaskMessage(taskEntity); this.pushTaskMessage(taskEntity);
planEntity.setCreateTaskTime(DateUtil.now());
planMapper.updateById(planEntity);
} }
else { else {
if(ObjectUtil.isNotEmpty(taskService.getById(taskEntity.getId()))) { if(ObjectUtil.isNotEmpty(taskService.getById(taskEntity.getId()))) {
taskService.removeById(taskEntity.getId()); taskService.removeById(taskEntity.getId());
} }
} }
planEntity.setCreateTaskTime(DateUtil.now());
planMapper.updateById(planEntity);
} }
/** /**

Loading…
Cancel
Save