fix(tenant): 修复用户忽略租户隔离查询功能中的SQL表名错误
- 修正 UserMapper.xml 中 sys_user 表的数据库前缀名称 - 修正文档中对应的 SQL 查询语句表名错误 - 确保查询逻辑在忽略租户隔离时能正确执行
This commit is contained in:
@@ -76,12 +76,12 @@ public User getByIdIgnoreTenant(Integer userId) {
|
||||
c.dict_data_name sex_name,
|
||||
e.tenant_name,
|
||||
h.dealer_id
|
||||
FROM gxgxwebsoft_core.sys_user a
|
||||
FROM gxwebsoft_core.sys_user a
|
||||
LEFT JOIN (
|
||||
<include refid="selectSexDictSql"/>
|
||||
) c ON a.sex = c.dict_data_code
|
||||
LEFT JOIN gxgxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id
|
||||
LEFT JOIN gxgxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0
|
||||
LEFT JOIN gxwebsoft_core.sys_tenant e ON a.tenant_id = e.tenant_id
|
||||
LEFT JOIN gxwebsoft_core.sys_user_referee h ON a.user_id = h.user_id and h.deleted = 0
|
||||
WHERE a.user_id = #{userId}
|
||||
AND a.deleted = 0
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user