fix(database): 修复用户角色查询中的表名引用问题

- 修正了 UserMapper.xml 中 sys_user_role 表的数据库模式前缀
- 添加了正确的 gxwebsoft_core 模式前缀以确保跨数据库兼容性
- 解决了由于表名解析错误可能导致的查询失败问题
This commit is contained in:
2026-03-18 10:57:02 +08:00
parent ced6178271
commit 6a48722b67

View File

@@ -102,7 +102,7 @@
AND a.deleted = 0 AND a.deleted = 0
</if> </if>
<if test="param.roleId != null"> <if test="param.roleId != null">
AND a.user_id IN (SELECT user_id FROM sys_user_role WHERE role_id=#{param.roleId}) AND a.user_id IN (SELECT user_id FROM gxwebsoft_core.sys_user_role WHERE role_id=#{param.roleId})
</if> </if>
<if test="param.userIds != null"> <if test="param.userIds != null">
AND a.user_id IN AND a.user_id IN