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