diff --git a/nanopart-server/pom.xml b/nanopart-server/pom.xml
index 50fd8844..178abe7f 100644
--- a/nanopart-server/pom.xml
+++ b/nanopart-server/pom.xml
@@ -56,6 +56,11 @@
axzo-test-spring-boot-starter
+
+ io.github.openfeign
+ feign-httpclient
+
+
cn.axzo.pokonyan
pokonyan
diff --git a/nanopart-server/src/main/resources/bootstrap.yml b/nanopart-server/src/main/resources/bootstrap.yml
index 3cc71161..857b00ee 100644
--- a/nanopart-server/src/main/resources/bootstrap.yml
+++ b/nanopart-server/src/main/resources/bootstrap.yml
@@ -14,6 +14,9 @@ spring:
main:
allow-bean-definition-overriding: true
+server:
+ shutdown: graceful
+
arthas:
app-name: ${spring.application.name}
agent-id: ${ARTHAS_AGENT_ID:${spring.profiles.active}-${spring.application.name}}
diff --git a/pom.xml b/pom.xml
index acadbe39..0fc12277 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,6 +24,7 @@
1.4.2.Final
5.2.2
3.3.3
+ 11.8
@@ -54,6 +55,12 @@
pom
import
+
+
+ io.github.openfeign
+ feign-httpclient
+ ${feign-httpclient.version}
+
diff --git a/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/service/impl/ChangeRecordRelationServiceImpl.java b/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/service/impl/ChangeRecordRelationServiceImpl.java
index 7f377c1c..4eadbd77 100644
--- a/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/service/impl/ChangeRecordRelationServiceImpl.java
+++ b/visa/visa-server/src/main/java/cn/axzo/nanopart/visa/server/service/impl/ChangeRecordRelationServiceImpl.java
@@ -159,6 +159,7 @@ public class ChangeRecordRelationServiceImpl extends ServiceImpl
- return nodeUserResp.stream().collect(Collectors.toMap(OrgNodeUserBriefInfoResp::getPersonId, Function.identity(), (v1, v2) -> v1));
+ return nodeUserResp.stream().collect(Collectors.toMap(OrgNodeUserBriefInfoResp::getPersonId, Function.identity(), (v1, v2) -> {
+ // 优先取exited=false的数据,若均为false,则取updateAt较大的数据
+ if (Objects.nonNull(v1.getExited()) && Objects.nonNull(v2.getExited())) {
+ if (v1.getExited() && !v2.getExited()) {
+ return v2;
+ } else if (!v1.getExited() && v2.getExited()) {
+ return v1;
+ }
+ }
+ return v1.getUpdateAt().compareTo(v2.getUpdateAt()) > 0 ? v1 : v2;
+ }));
}
private static VisaChangeInitiatorResp buildInitiatorResp(Map initiatorMap, ChangeRecordConfirm i) {
@@ -1309,7 +1320,10 @@ public class ChangeRecordServiceImpl extends ServiceImpl imReceiveAccounts = Sets.newHashSet(String.valueOf(visa.getImGroupId()));
+ cardRequest.setImReceiveAccounts(imReceiveAccounts);
OrganizationalUnitVO unitInfo = organizationalUnitGateway.getUnitInfo(req.getOperatorOuId());
PersonProfileDto profile = visaProfileGateway.getProfile(req.getOperatorPersonId());
@@ -1600,10 +1620,26 @@ public class ChangeRecordServiceImpl extends ServiceImpl