|
@@ -46,6 +46,11 @@ public class MerchantApplyServiceImpl implements MerchantApplyService {
|
|
|
@Override
|
|
|
public Long createMerchantApply(MerchantApplySaveReqVO createReqVO) {
|
|
|
|
|
|
+ if(merchantApplyMapper.selectOne(MerchantApplyDO::getApplyMemberUserId, getLoginUserId()) != null){
|
|
|
+ ErrorCode ERROR = new ErrorCode(1_002_029_003, "当前手机号已存在商户账号");
|
|
|
+ throw exception(ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
// 校验存在
|
|
|
if (usersService.getUserByMobile(createReqVO.getContactNumber()) != null) {
|
|
|
ErrorCode ERROR = new ErrorCode(1_002_029_003, "联络人账户已存在");
|