新增:用户模块关联查询用户分组及用户等级表

This commit is contained in:
gxwebsoft
2024-06-13 17:10:03 +08:00
parent c9a54c9bd9
commit 48b05487f0

View File

@@ -26,7 +26,9 @@
<sql id="selectSql"> <sql id="selectSql">
SELECT a.*, SELECT a.*,
b.organization_name, b.organization_name,
c.dict_data_name sex_name c.dict_data_name sex_name,
e.name as groupName,
f.name as gradeName
FROM sys_user a FROM sys_user a
LEFT JOIN sys_organization b ON a.organization_id = b.organization_id LEFT JOIN sys_organization b ON a.organization_id = b.organization_id
LEFT JOIN ( LEFT JOIN (
@@ -35,6 +37,8 @@
LEFT JOIN( LEFT JOIN(
<include refid="selectUserRoleSql"/> <include refid="selectUserRoleSql"/>
) d ON a.user_id = d.user_id ) d ON a.user_id = d.user_id
LEFT JOIN sys_user_group e ON a.group_id = e.group_id
LEFT JOIN sys_user_grade f ON a.grade_id = f.grade_id
<where> <where>
<if test="param.userId != null"> <if test="param.userId != null">
AND a.user_id = #{param.userId} AND a.user_id = #{param.userId}