Compare commits

..

No commits in common. "5f5b9ec9ab019f92fe0a203e52c4e8071761c547" and "c755d116096efdeaca262d1a016a29aa4d3225e6" have entirely different histories.

3 changed files with 4 additions and 10 deletions

View File

@ -280,8 +280,8 @@ public class SysUserController extends BaseController
@PostMapping("/updateUserInfo")
public AjaxResult updateUserInfo(@RequestBody SysUser sysUser){
return userService.updateUserInfo(sysUser);
userService.updateUserInfo(sysUser);
return AjaxResult.success("修改成功");
}
/**

View File

@ -211,7 +211,7 @@ public interface ISysUserService
void addUser(String openid,String type,String phone);
AjaxResult updateUserInfo(SysUser sysUser);
void updateUserInfo(SysUser sysUser);
SysUser selectUserInfoById(Long userId);

View File

@ -611,19 +611,13 @@ public class SysUserServiceImpl implements ISysUserService
}
@Override
public AjaxResult updateUserInfo(SysUser sysUser) {
public void updateUserInfo(SysUser sysUser) {
if (sysUser.getInvitationCode() != null){
Long aLong = ShareCodeUtils.codeToId(sysUser.getInvitationCode());
sysUser.setInviterUserId(aLong);
if (aLong == SecurityUtils.getUserId()){
return AjaxResult.error(HttpStatus.SHOW_ERROR_MSG,"邀请人不能填自己");
}
}
userMapper.updateUserInfo(sysUser);
return AjaxResult.success("修改成功");
}
@Override