From 8ec6a1df9a4212be30a11797e03b4c6cf46f4c27 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 22 七月 2022 13:24:45 +0800
Subject: [PATCH] 优化代码 属性加入ID
---
service-common/src/main/java/com/java110/common/smo/impl/ContractApplyUserInnerServiceSMOImpl.java | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/service-common/src/main/java/com/java110/common/smo/impl/ContractApplyUserInnerServiceSMOImpl.java b/service-common/src/main/java/com/java110/common/smo/impl/ContractApplyUserInnerServiceSMOImpl.java
index 1fa2c81..58a988f 100644
--- a/service-common/src/main/java/com/java110/common/smo/impl/ContractApplyUserInnerServiceSMOImpl.java
+++ b/service-common/src/main/java/com/java110/common/smo/impl/ContractApplyUserInnerServiceSMOImpl.java
@@ -140,15 +140,10 @@
if (FlowUtil.isCondition(outgoingFlow.getConditionExpression(), vars)) {
isReturn = true;
}
+
if (!isReturn) {
String assignee = ((UserTask) targetFlowElement).getAssignee();
- if (!StringUtil.isEmpty(assignee) && assignee.indexOf("${") < 0) {
- taskBusinessKeyMap.put(business_key + "_hasAudit", "1");
- }
- if ("${startUserId}".equals(assignee)) {
- taskBusinessKeyMap.put(business_key + "_hasAudit", "1");
- }
- if ("${nextUserId}".equals(assignee)) {
+ if (!StringUtil.isEmpty(assignee)) {
taskBusinessKeyMap.put(business_key + "_hasAudit", "1");
}
}
@@ -156,7 +151,6 @@
//濡傛灉涓嬩竴涓负 缁撴潫鑺傜偣
if (targetFlowElement instanceof EndEvent) {
//true 鑾峰彇杈撳嚭鑺傜偣鍚嶇О
- taskBusinessKeyMap.put(business_key + "_hasAudit", "");
taskBusinessKeyMap.put(business_key + "_hasEnd", "1");
}
}
--
Gitblit v1.8.0