| | |
| | | public BaseResponse<QueryResultVo<List<VoUserInfo>>> some(QueryVo vo) { |
| | | try { |
| | | QueryResultVo<List<VoUserInfo>> res = this.sv.selectSome(vo); |
| | | if(res.itemTotal == 0) { |
| | | return BaseResponseUtils.buildFail(SystemResultCode.THE_USER_NOT_EXIST.getMessage()); |
| | | }else { |
| | | // if(res.itemTotal == 0) { |
| | | // return BaseResponseUtils.buildSuccess(SystemResultCode.THE_USER_NOT_EXIST.getMessage()); |
| | | // }else { |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } |
| | | // } |
| | | |
| | | |
| | | } catch (Exception e) { |
| | |
| | | schema = @Schema(implementation = Boolean.class))} |
| | | ) |
| | | }) |
| | | @PostMapping(path = "resetPassword") |
| | | @PostMapping(path = "resetPassword", consumes = MediaType.APPLICATION_JSON_VALUE) |
| | | @SsoAop() |
| | | public BaseResponse<Boolean> resetPassword(String id) throws Exception { |
| | | if (id == null || id == "") { |
| | | public BaseResponse<Boolean> resetPassword(@RequestBody ResetPasswordVo vo) throws Exception { |
| | | if (vo.id == null || vo.id == "") { |
| | | return BaseResponseUtils.buildFail("id不能为空"); |
| | | } |
| | | Long idLg = Long.parseLong(id); |
| | | Long idLg = Long.parseLong(vo.id); |
| | | int count; |
| | | try { |
| | | BaUser po = this.sv.selectById(idLg); |