| | |
| | | @ApiOperation("修改用户接口") |
| | | @PostMapping("/update") |
| | | @Authorization |
| | | public ResultData updateConfig(@RequestBody SysUser config) |
| | | public ResultData updateConfig(@RequestBody SysUser config,@CurrentUser SysUser sys) |
| | | { |
| | | if(config.getUserId()==null) |
| | | if(config.getId()==null) |
| | | { |
| | | return error("userId不能为空"); |
| | | return error("Id不能为空"); |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(config.getLoginName())) |
| | |
| | | } |
| | | |
| | | config.setUserType("3"); |
| | | |
| | | config.setUpdateBy(sys.getUserId()+""); |
| | | |
| | | return toAjax(IUserService.updateConfig(config)); |
| | | } |
| | |
| | | return error("输入密码与原密码不能相同!"); |
| | | } |
| | | |
| | | |
| | | |
| | | return toAjax(IUserService.updateConfig(config)); |
| | | } |
| | | |