修复bug
This commit is contained in:
parent
db2b42af57
commit
14ba8266fa
|
@ -212,7 +212,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
|
||||||
if(StrUtil.isNotBlank(req.getMobile())){
|
if(StrUtil.isNotBlank(req.getMobile())){
|
||||||
LambdaQueryWrapper<UserEntity> mobileWrapper = Wrappers.lambdaQuery(UserEntity.class).eq(UserEntity::getMobile, req.getMobile()).eq(UserEntity::getDelFlag, Constants.DEL_FLAG_0);
|
LambdaQueryWrapper<UserEntity> mobileWrapper = Wrappers.lambdaQuery(UserEntity.class).eq(UserEntity::getMobile, req.getMobile()).eq(UserEntity::getDelFlag, Constants.DEL_FLAG_0);
|
||||||
List<UserEntity> mobileUserList = this.list(mobileWrapper);
|
List<UserEntity> mobileUserList = this.list(mobileWrapper);
|
||||||
if((originalEntity == null && !mobileUserList.isEmpty()) || (originalEntity != null && !originalEntity.getMobile().equals(req.getMobile()) && mobileUserList.size() > 1)){
|
if((originalEntity == null && !mobileUserList.isEmpty()) || (originalEntity != null && !originalEntity.getMobile().equals(req.getMobile()) && !mobileUserList.isEmpty())){
|
||||||
throw new ServiceException(Message.MOBILE_EXIST);
|
throw new ServiceException(Message.MOBILE_EXIST);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue