zrj
2024-07-03 0b1e9e70818f0e3eb32dd6c029d42d93236ecdc6
src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java
@@ -39,8 +39,6 @@
import org.springblade.flow.engine.constant.FlowEngineConstant;
import org.springblade.flow.engine.entity.FlowProcess;
import org.springblade.flow.engine.utils.FlowCache;
import org.springblade.modules.property.entity.PropertyCapitalApplyEntity;
import org.springblade.modules.property.service.IPropertyCapitalApplyService;
import org.springframework.stereotype.Service;
import java.util.LinkedList;
@@ -241,14 +239,6 @@
               flow.setProcessIsFinished(FlowEngineConstant.STATUS_UNFINISHED);
            }
         }
         IPropertyCapitalApplyService bean = SpringUtils.getBean(IPropertyCapitalApplyService.class);
         PropertyCapitalApplyEntity capitalApplyEntity = bean.getOne(Wrappers.<PropertyCapitalApplyEntity>lambdaQuery().eq(PropertyCapitalApplyEntity::getProcessInstanceId, historicTaskInstance.getProcessInstanceId()));
         if (capitalApplyEntity != null) {
            flow.setName(capitalApplyEntity.getName());
            flow.setDistrictId(capitalApplyEntity.getDistrictId());
            flow.setLinkman(capitalApplyEntity.getLinkman());
            flow.setLinkPhone(capitalApplyEntity.getLinkPhone());
         }
         flow.setStatus(FlowEngineConstant.STATUS_FINISH);
         flowList.add(flow);
      });
@@ -318,15 +308,6 @@
            flow.setBusinessTable(businessKey[0]);
            flow.setBusinessId(businessKey[1]);
         }
         IPropertyCapitalApplyService bean = SpringUtils.getBean(IPropertyCapitalApplyService.class);
         PropertyCapitalApplyEntity capitalApplyEntity = bean.getOne(Wrappers.<PropertyCapitalApplyEntity>lambdaQuery().eq(PropertyCapitalApplyEntity::getProcessInstanceId, task.getProcessInstanceId()));
         if (capitalApplyEntity != null) {
            flow.setName(capitalApplyEntity.getName());
            flow.setDistrictId(capitalApplyEntity.getDistrictId());
            flow.setLinkman(capitalApplyEntity.getLinkman());
            flow.setLinkPhone(capitalApplyEntity.getLinkPhone());
         }
         FlowProcess processDefinition = FlowCache.getProcessDefinition(task.getProcessDefinitionId());
         flow.setCategory(processDefinition.getCategory());
         flow.setCategoryName(FlowCache.getCategoryName(processDefinition.getCategory()));