Commit 54f5bc9b by wenshuaiying

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

1 parent 386e7ccf
......@@ -46,13 +46,15 @@ public class MainController {
return poolService.queryPool(requestVo);
case MatchPerson:
ResponseVo matchPerson = personService.matchPerson(requestVo);
// 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) {
// requestVo.getPerson().setPersonId(matchPerson.getMatchPersons().get(0).getPersonId());
// }
// poolService.asyncModifyPool(requestVo.getPersonPoolId(), requestVo.getPerson());
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) {
requestVo.getPerson().setPersonId(matchPerson.getMatchPersons().get(0).getPersonId());
}
poolService.asyncModifyPool(requestVo.getPersonPoolId(), requestVo.getPerson());
return matchPerson;
case UpdatePerson:
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!