| | |
| | | |
| | | /** |
| | | * 修改密码 |
| | | * @param userOid 用户主键 |
| | | * @param userName 用户名 |
| | | * @param password 新密码 |
| | | * @param confirmPassword 确认密码 |
| | | */ |
| | | @RequestMapping(value = "/changePassword",method = RequestMethod.POST) |
| | | @VciUnCheckRight |
| | | public BaseResult changePassword(String userOid,String oldPassword, String password, String confirmPassword) throws PLException { |
| | | public BaseResult changePassword(String userName,String oldPassword, String password, String confirmPassword) throws PLException { |
| | | try { |
| | | return userQueryService.changePassword(userOid, oldPassword, password, confirmPassword) ? BaseResult.success(true,"用户修改成功!"):BaseResult.fail("用户修改失败!"); |
| | | return userQueryService.changePassword(userName, oldPassword, password, confirmPassword) ? BaseResult.success(true,"用户修改成功!"):BaseResult.fail("用户修改失败!"); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "修改密码时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |