提交 85ea57b6 authored 作者: linzhenjie's avatar linzhenjie

修改用户资料更新

上级 fbe331fe
...@@ -133,7 +133,7 @@ public class AppUserController extends AbstractController { ...@@ -133,7 +133,7 @@ public class AppUserController extends AbstractController {
public R update(@RequestBody UpdateForm form){ public R update(@RequestBody UpdateForm form){
AppUserEntity user = new AppUserEntity(); AppUserEntity user = new AppUserEntity();
AppUserEntity user1 = otherAppUserService.getById(form.getId()); // AppUserEntity user1 = otherAppUserService.getById(form.getId());
//修改手机号码 //修改手机号码
if(StringUtils.isNotEmpty(form.getPhone())) { if(StringUtils.isNotEmpty(form.getPhone())) {
...@@ -159,8 +159,10 @@ public class AppUserController extends AbstractController { ...@@ -159,8 +159,10 @@ public class AppUserController extends AbstractController {
e.printStackTrace(); e.printStackTrace();
} }
otherAppUserService.updateById(user); if(otherAppUserService.updateById(user)) {
return R.ok(); return R.ok().put("user", otherAppUserService.getById(user.getId()));
}
return R.error("更新用户信息出错了");
} }
@PostMapping("login") @PostMapping("login")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论