Commit 02533394 by 李小龙 Committed by huangjy

fix:空指针

parent 3fac5066
...@@ -239,7 +239,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser> ...@@ -239,7 +239,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
if (e.getMobile().equals(dto.getMobile()) && !e.getId().equals(dto.getId())) { if (e.getMobile().equals(dto.getMobile()) && !e.getId().equals(dto.getId())) {
throw new BusinessException(CodeMessageEnum.SYSTEM_ERROR_USER_MOBILE_DUPLICATE); throw new BusinessException(CodeMessageEnum.SYSTEM_ERROR_USER_MOBILE_DUPLICATE);
} }
if (StringUtils.isNotBlank(dto.getEmail()) && e.getEmail().equals(dto.getEmail()) && !e.getId().equals(dto.getId())) { if (StringUtils.isNotBlank(dto.getEmail()) && StringUtils.equals(e.getEmail(),dto.getEmail()) && !e.getId().equals(dto.getId())) {
throw new BusinessException(CodeMessageEnum.SYSTEM_ERROR_USER_MAIL_DUPLICATE); throw new BusinessException(CodeMessageEnum.SYSTEM_ERROR_USER_MAIL_DUPLICATE);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment