diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskCreateTask.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskCreateTask.java index 1e55809..411f20c 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskCreateTask.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/maintenance/scheduled/MaintenanceTaskCreateTask.java @@ -158,15 +158,14 @@ public class MaintenanceTaskCreateTask { taskEntity.setProcessInstanceId(processInstanceId); taskService.updateById(taskEntity); this.pushTaskMessage(taskEntity); + planEntity.setCreateTaskTime(DateUtil.now()); + planMapper.updateById(planEntity); } else { if(ObjectUtil.isNotEmpty(taskService.getById(taskEntity.getId()))) { taskService.removeById(taskEntity.getId()); } } - planEntity.setCreateTaskTime(DateUtil.now()); - planMapper.updateById(planEntity); - } /**