新增:用户模块关联查询用户分组及用户等级表
This commit is contained in:
@@ -26,7 +26,9 @@
|
||||
<sql id="selectSql">
|
||||
SELECT a.*,
|
||||
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
|
||||
LEFT JOIN sys_organization b ON a.organization_id = b.organization_id
|
||||
LEFT JOIN (
|
||||
@@ -35,6 +37,8 @@
|
||||
LEFT JOIN(
|
||||
<include refid="selectUserRoleSql"/>
|
||||
) 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>
|
||||
<if test="param.userId != null">
|
||||
AND a.user_id = #{param.userId}
|
||||
|
||||
Reference in New Issue
Block a user