| | |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/resetClientPassword") |
| | | public ResponseVO<Object> resetClientPassword(@RequestBody @Validated ResetClientPasswordPrarm resetClientPasswordPrarm) { |
| | | boolean b = clientService.resetPassword(resetClientPasswordPrarm); |
| | | if (b) { |
| | | return ResponseUtil.success("修改成功"); |
| | | } else { |
| | | return ResponseUtil.fail("修改失败"); |
| | | } |
| | | } |
| | | // @PostMapping("/resetClientPassword") |
| | | // public ResponseVO<Object> resetClientPassword(@RequestBody @Validated ResetClientPasswordPrarm resetClientPasswordPrarm) { |
| | | // boolean b = clientService.resetPassword(resetClientPasswordPrarm); |
| | | // if (b) { |
| | | // return ResponseUtil.success("修改成功"); |
| | | // } else { |
| | | // return ResponseUtil.fail("修改失败"); |
| | | // } |
| | | // } |
| | | |
| | | @PostMapping("/delete/{id}") |
| | | public ResponseVO<Object> deleteClient(@PathVariable Long id) { |
| | |
| | | if (AdministratorEnums.CUSTOMER.getCode().equals(SecurityUtils.getAdministratorIdentity())) { |
| | | wrapper.eq(Client::getSuperiorId, SecurityUtils.getUserId()); |
| | | } |
| | | if (null != keyword) { |
| | | if (keyword != null && !keyword.isEmpty()) { |
| | | wrapper.like(Client::getClientName, keyword) |
| | | .or(clientLambdaQueryWrapper -> clientLambdaQueryWrapper.like(Client::getMobile, keyword)) |
| | | .or(clientLambdaQueryWrapper -> clientLambdaQueryWrapper.like(Client::getLinkMan, keyword)); |