Browse Source

#定时任务抽离

zhongwei
yang_shj 1 year ago
parent
commit
c992ed9f04
  1. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java

2
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);
}

Loading…
Cancel
Save