作者 朱兆平

卡口用户修改密码优化

@@ -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 }