Explorar o código

身份证信息校验

wks hai 1 ano
pai
achega
1fe3e2a36a

+ 0 - 6
src/main/java/com/ydtech/modules/admin/controller/SysUserController.java

@@ -791,12 +791,6 @@ public class SysUserController extends BaseController {
         //个代
         UnionPayResponse response = new UnionPayResponse();
         if ("2".equals(reUser.getManagementSource())) {
-            // 身份证相同的列表
-            List<SysUser> identityUserList = sysUserService.lambdaQuery().eq(SysUser::getIdentity, dto.getIdentity()).list();
-            if (!identityUserList.isEmpty()) {
-                throw new SystemException("身份证已经被注册请重新跟换身份证。如有疑问请联系管理人员。");
-            }
-
             if (StringUtils.isNullOrEmpty(dto.getIdentity())) {
                 return HttpResult.error("机构来源为个代的证件号不能为空");
             }