From 9499e3c887fc1be2115c38540d1dc515c7403d38 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Mon, 26 Feb 2024 15:46:48 +0800
Subject: [PATCH] 去除多余代码

---
 src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java b/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java
index d8d1bdd..4066d07 100644
--- a/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java
+++ b/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()));

--
Gitblit v1.9.3