|
@@ -187,7 +187,7 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
if(jyUser == null && jyUser2!=null){
|
|
|
throw new BusinessException(ResultCode.RYNO_EXITS);
|
|
|
}
|
|
|
- if(jyUser != null && !jyUser2.getId().equals(jyUser.getId())){
|
|
|
+ if(jyUser != null && jyUser2 != null && !jyUser2.getId().equals(jyUser.getId())){
|
|
|
throw new BusinessException(ResultCode.RYNO_EXITS);
|
|
|
}
|
|
|
if(jyUser == null){
|