linwei
2024-01-10 d4652968511bc92854d87e9519f144512743fd05
src/main/java/org/springblade/flow/listener/MyExecutionListener.java
@@ -14,6 +14,9 @@
      System.out.println("***************************DelegateExecution");
      IPropertyCapitalApplyService bean = SpringUtils.getBean(IPropertyCapitalApplyService.class);
      PropertyCapitalApplyEntity applyEntity = bean.getOne(Wrappers.<PropertyCapitalApplyEntity>lambdaQuery().eq(PropertyCapitalApplyEntity::getProcessInstanceId, delegateExecution.getProcessInstanceId()));
      if (applyEntity == null) {
         return;
      }
      if (delegateExecution.getCurrentActivityId().equals("ownersCommittee1")) {
         applyEntity.setApplyStatus(1);
      } else if (delegateExecution.getCurrentActivityId().equals("ownersCommitteePass")) {
@@ -26,6 +29,8 @@
         applyEntity.setApplyStatus(5);
      } else if (delegateExecution.getCurrentActivityId().equals("applyNotPass")) {
         applyEntity.setApplyStatus(6);
      } else if (delegateExecution.getCurrentActivityId().equals("ownersCommitteeFlag0")) {
         applyEntity.setApplyStatus(2);
      }
      bean.updateById(applyEntity);
   }