Commit e68fd9e6 by wenshuaiying

兼容店员匹配后,不自动加入

1 parent f07d6fed
...@@ -46,7 +46,9 @@ public class MainController { ...@@ -46,7 +46,9 @@ public class MainController {
return poolService.queryPool(requestVo); return poolService.queryPool(requestVo);
case MatchPerson: case MatchPerson:
ResponseVo matchPerson = personService.matchPerson(requestVo); ResponseVo matchPerson = personService.matchPerson(requestVo);
if (requestVo.getPersonPoolId().contains("staff") || requestVo.getPersonPoolId().contains("person")) {
return matchPerson;
}
if (matchPerson.getMatchBodies() != null && matchPerson.getMatchBodies().size() > 0) { if (matchPerson.getMatchBodies() != null && matchPerson.getMatchBodies().size() > 0) {
requestVo.getPerson().setPersonId(matchPerson.getMatchBodies().get(0).getPersonId()); requestVo.getPerson().setPersonId(matchPerson.getMatchBodies().get(0).getPersonId());
} else if(matchPerson.getMatchPersons() != null && matchPerson.getMatchPersons().size() > 0) { } else if(matchPerson.getMatchPersons() != null && matchPerson.getMatchPersons().size() > 0) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!