fix: 用户唯一检查

V0.5.x
jay 2023-06-12 10:15:21 +08:00
parent 56dfeffafc
commit 29ed57407a
1 changed files with 2 additions and 2 deletions

View File

@ -117,13 +117,13 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
@Override @Override
public boolean checkPhoneUnique(SysUserBo user) { public boolean checkPhoneUnique(SysUserBo user) {
boolean exist = sysUserData.checkPhoneUnique(user.to(SysUser.class)); boolean exist = sysUserData.checkPhoneUnique(user.to(SysUser.class));
return !exist; return exist;
} }
@Override @Override
public boolean checkEmailUnique(SysUserBo user) { public boolean checkEmailUnique(SysUserBo user) {
boolean exist = sysUserData.checkEmailUnique(user.to(SysUser.class)); boolean exist = sysUserData.checkEmailUnique(user.to(SysUser.class));
return !exist; return exist;
} }
@Override @Override