This commit is contained in:
张良(004796)
2024-01-31 18:39:41 +08:00
parent 46cada598e
commit 9436622f41
2 changed files with 5 additions and 2 deletions

View File

@@ -192,7 +192,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
if(user == null || user.getFinishStatus() == 1){
return;
}
if(user.getCity() != null && user.getBirthday() != null && GenderEnum.NONE.getCode().equals(user.getGender())){
if(user.getCity() != null && user.getBirthday() != null && !GenderEnum.NONE.getCode().equals(user.getGender())){
this.update(Wrappers.lambdaUpdate(User.class)
.eq(User::getId,user.getId())
.set(User::getFinishStatus,1));
@@ -347,6 +347,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
if(user == null){
throw new ServiceException("用户不存在");
}
if(user.getInviteId() != null){
throw new ServiceException("请先解绑后在绑定");
}
User inviteUser = this.getByUserCode(inviteUsercode);
if(inviteUser == null){
throw new ServiceException("邀请人用户不存在");