Commit 54f5bc9b by wenshuaiying

兼容店员匹配后,不自动加入.放开异步添加

1 parent 386e7ccf
...@@ -46,13 +46,15 @@ public class MainController { ...@@ -46,13 +46,15 @@ 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")) {
// if (matchPerson.getMatchBodies() != null && matchPerson.getMatchBodies().size() > 0) { return matchPerson;
// requestVo.getPerson().setPersonId(matchPerson.getMatchBodies().get(0).getPersonId()); }
// } else if(matchPerson.getMatchPersons() != null && matchPerson.getMatchPersons().size() > 0) { if (matchPerson.getMatchBodies() != null && matchPerson.getMatchBodies().size() > 0) {
// requestVo.getPerson().setPersonId(matchPerson.getMatchPersons().get(0).getPersonId()); requestVo.getPerson().setPersonId(matchPerson.getMatchBodies().get(0).getPersonId());
// } } else if (matchPerson.getMatchPersons() != null && matchPerson.getMatchPersons().size() > 0) {
// poolService.asyncModifyPool(requestVo.getPersonPoolId(), requestVo.getPerson()); requestVo.getPerson().setPersonId(matchPerson.getMatchPersons().get(0).getPersonId());
}
poolService.asyncModifyPool(requestVo.getPersonPoolId(), requestVo.getPerson());
return matchPerson; return matchPerson;
case UpdatePerson: case UpdatePerson:
return personService.updatePerson(requestVo); return personService.updatePerson(requestVo);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!