|
@@ -188,6 +188,16 @@ public class UserServiceImpl extends ServiceImpl<IUserMapper, User> implements I
|
|
|
|
|
|
JyUser jyUser2 = jyUserService.getByRyNo(param.getRyNo());
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(param.getIdCard())){
|
|
|
+ JyUser byIdCard = jyUserService.getByIdCard(param.getIdCard());
|
|
|
+ if(jyUser == null && byIdCard!= null){
|
|
|
+ throw new BusinessException(ResultCode.ID_CARD_EXIT);
|
|
|
+ }
|
|
|
+ if(jyUser != null && byIdCard != null && !jyUser.getId().equals(byIdCard.getId())){
|
|
|
+ throw new BusinessException(ResultCode.ID_CARD_EXIT);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if(jyUser == null && jyUser2!=null){
|
|
|
throw new BusinessException(ResultCode.RYNO_EXITS);
|
|
|
}
|