兼容店员匹配后,不自动加入.patch 1.37 KB
Subject: [PATCH] 兼容店员匹配后,不自动加入
---
Index: src/main/java/com/viontech/match/controller/MainController.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/com/viontech/match/controller/MainController.java b/src/main/java/com/viontech/match/controller/MainController.java
--- a/src/main/java/com/viontech/match/controller/MainController.java	(revision f07d6fed8a874a8aa13a8ea9a606000a74b7b41a)
+++ b/src/main/java/com/viontech/match/controller/MainController.java	(revision e68fd9e6db2d7e014ba3ded03cb462d325767e92)
@@ -46,7 +46,9 @@
                     return poolService.queryPool(requestVo);
                 case MatchPerson:
                     ResponseVo matchPerson = personService.matchPerson(requestVo);
-
+                    if (requestVo.getPersonPoolId().contains("staff") || requestVo.getPersonPoolId().contains("person")) {
+                        return matchPerson;
+                    }
                     if (matchPerson.getMatchBodies() != null && matchPerson.getMatchBodies().size() > 0) {
                         requestVo.getPerson().setPersonId(matchPerson.getMatchBodies().get(0).getPersonId());
                     } else if(matchPerson.getMatchPersons() != null && matchPerson.getMatchPersons().size() > 0) {