| | |
| | | @GetMapping("/api/wx/findPerson") |
| | | public R findIdPerson(String name,String company) { |
| | | R response; |
| | | if (personService.findIdPerson(name,company) != null) { |
| | | String output = name.toUpperCase();//将小写字母转成大写字母 |
| | | if (personService.findIdPerson(output,company) != null) { |
| | | response = new R(StatusCode.Success); |
| | | // String token = wechatService.getToken(loginRequest); |
| | | // tbUser1.setToken(token); |
| | | response.setData(personService.findIdPerson(name,company)); |
| | | response.setData(personService.findIdPerson(output,company)); |
| | | // return personService.findIdPerson(name); |
| | | } else { |
| | | response = new R(StatusCode.Fail); |
| | |
| | | } |
| | | |
| | | @GetMapping("/api/wx/acquisition") |
| | | public R acquisition(String baoliu3) { |
| | | public R acquisition(String baoliu3,String company) { |
| | | R response; |
| | | TbPerson tbPerson = personService.acquisition(baoliu3); |
| | | String output = baoliu3.toUpperCase();//将小写字母转成大写字母 |
| | | |
| | | TbPerson tbPerson = personService.acquisition(output,company); |
| | | |
| | | if (tbPerson != null) { |
| | | if (Objects.equals(tbPerson.getBaoliu13(), "高精度") && Objects.equals(tbPerson.getPOnline(), "1")) { |