|
|
@@ -180,6 +180,9 @@ public class UserIdentCertServiceImpl implements UserIdentCertService {
|
|
|
String ocrIdCard = text.getOcrIdCard();
|
|
|
Integer count = userCertRecordMapper.selectCount(Wrappers.lambdaQuery(UserCertRecord.class)
|
|
|
.eq(UserCertRecord::getIdent, ocrIdCard));
|
|
|
+ if (count > 0) {
|
|
|
+ throw BusinessRuntimeException.getInstance("该身份证号已被其他账号绑定");
|
|
|
+ }
|
|
|
if (count == 0) {
|
|
|
certRecord.setIdent(text.getOcrIdCard());
|
|
|
certRecord.setName(text.getOcrName());
|