修改公司判重
parent
fe60fdf166
commit
5164ca1543
|
|
@ -730,6 +730,10 @@ public class UserRepositoryImpl extends BaseRepositoryImpl<UserMapper, UserDO> i
|
||||||
Map<String, Object> verifyParam = new HashMap<>();
|
Map<String, Object> verifyParam = new HashMap<>();
|
||||||
verifyParam.put("userIdCard", userIdCard);
|
verifyParam.put("userIdCard", userIdCard);
|
||||||
verifyParam.put("id", id);
|
verifyParam.put("id", id);
|
||||||
|
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||||
|
if(ssoUser != null ){
|
||||||
|
verifyParam.put("tenantId", ssoUser.getTenantId());
|
||||||
|
}
|
||||||
Integer count = userMapper.countUser(verifyParam);
|
Integer count = userMapper.countUser(verifyParam);
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
throw new BizException("身份证号已经存在,请联系管理员");
|
throw new BizException("身份证号已经存在,请联系管理员");
|
||||||
|
|
|
||||||
|
|
@ -495,6 +495,9 @@
|
||||||
<if test="params.phone != null">
|
<if test="params.phone != null">
|
||||||
and phone = #{params.phone}
|
and phone = #{params.phone}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="params.tenantId != null">
|
||||||
|
and tenant_id = #{params.tenantId}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue