diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java index 511b3cc..8158577 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java @@ -79,6 +79,7 @@ public class AccessPlanV4ServiceImpl implements AccessPlanV4Service{ // 检修计划保存 entity.setCode("PLAN_" + DateUtil.format(DateUtil.now(), DateUtil.PATTERN_DATETIME_MINI) + new DecimalFormat("###").format(RandomUtils.nextInt(0, 999))); entity.setProcDefId("overhaul_plan"); + entity.setActStartTime(new Date()); planService.save(entity); } @@ -177,6 +178,7 @@ public class AccessPlanV4ServiceImpl implements AccessPlanV4Service{ if(ObjectUtil.isNotEmpty(variables.get("examine")) && (Boolean) variables.get("examine")){ entity.setTaskName("流程结束"); entity.setNextStepOperator("流程结束,无需人员处理"); + entity.setActEndTime(new Date()); // 开启检修任务 this.startTaskProcess(entity); }