|
@@ -71,7 +71,7 @@ public class JyPlatformServiceImpl extends ServiceImpl<IJyPlatformMapper, JyPlat
|
|
JyUser jyUser = null;
|
|
JyUser jyUser = null;
|
|
jyUser = jyUserService.getByIdCard(param.getIdCard());
|
|
jyUser = jyUserService.getByIdCard(param.getIdCard());
|
|
if(jyUser != null && jyUser.getPlatformId() != null ){
|
|
if(jyUser != null && jyUser.getPlatformId() != null ){
|
|
- throw new BusinessException(ResultCode.ID_CARD_EXIT);
|
|
|
|
|
|
+ throw new BusinessException(ResultCode.ID_CARD_EXIT2);
|
|
}
|
|
}
|
|
|
|
|
|
if(param.getId() == null){ //创建平台自动生成平台访问地址
|
|
if(param.getId() == null){ //创建平台自动生成平台访问地址
|
|
@@ -90,6 +90,10 @@ public class JyPlatformServiceImpl extends ServiceImpl<IJyPlatformMapper, JyPlat
|
|
if(jyPlatform == null){
|
|
if(jyPlatform == null){
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
throw new BusinessException(ResultCode.MISSING_REQUIRED_PARAMETERS);
|
|
}
|
|
}
|
|
|
|
+ JyPlatform jyPlatform2 = this.getByIdCard(param.getIdCard());
|
|
|
|
+ if(jyPlatform2 != null && !jyPlatform2.getId().equals(jyPlatform.getId())){
|
|
|
|
+ throw new BusinessException(ResultCode.ID_CARD_EXIT);
|
|
|
|
+ }
|
|
if(!param.getIdCard().equals(jyPlatform.getIdCard())){
|
|
if(!param.getIdCard().equals(jyPlatform.getIdCard())){
|
|
JyUser jyUser1 = jyUserService.getByIdCard(jyPlatform.getIdCard());
|
|
JyUser jyUser1 = jyUserService.getByIdCard(jyPlatform.getIdCard());
|
|
if(jyUser1 != null){
|
|
if(jyUser1 != null){
|