正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -98,6 +98,9 @@ public class UserController { | @@ -98,6 +98,9 @@ public class UserController { | ||
98 | @LogAnnotation(moduleName = "用户管理",operate = "用户密码修改") | 98 | @LogAnnotation(moduleName = "用户管理",operate = "用户密码修改") |
99 | @PutMapping("/password") | 99 | @PutMapping("/password") |
100 | public ResultJson updateUserPassById(@RequestBody KakoUser user){ | 100 | public ResultJson updateUserPassById(@RequestBody KakoUser user){ |
101 | + KakoUser kakoUser = new KakoUser(); | ||
102 | + kakoUser.setId(user.getId()); | ||
103 | + kakoUser.setPassword(user.getPassword()); | ||
101 | int i = userService.updateByPrimaryKeySelective(user); | 104 | int i = userService.updateByPrimaryKeySelective(user); |
102 | return i==1 ? new ResultJson("200","success") :new ResultJson("500","update faild"); | 105 | return i==1 ? new ResultJson("200","success") :new ResultJson("500","update faild"); |
103 | } | 106 | } |
-
请 注册 或 登录 后发表评论