|
|
@ -1503,10 +1503,15 @@ |
|
|
a.username as adminID, |
|
|
a.username as adminID, |
|
|
a.email, |
|
|
a.email, |
|
|
a.mobile as phone, |
|
|
a.mobile as phone, |
|
|
a.user_display as adminName |
|
|
|
|
|
|
|
|
a.user_display as adminName, |
|
|
|
|
|
dbo.get_bu_desc(c.site,c.bu_no) as buDesc, |
|
|
|
|
|
d.role_id, |
|
|
|
|
|
e.role_name |
|
|
FROM sys_user as a |
|
|
FROM sys_user as a |
|
|
LEFT JOIN eam_access_site as b on a.username = b.username |
|
|
LEFT JOIN eam_access_site as b on a.username = b.username |
|
|
LEFT JOIN AccessBu as c on b.username = c.username and b.site = c.site |
|
|
LEFT JOIN AccessBu as c on b.username = c.username and b.site = c.site |
|
|
|
|
|
LEFT JOIN sys_user_role as d on a.user_id = d.user_id |
|
|
|
|
|
LEFT JOIN sys_role as e on d.role_id = e.role_id |
|
|
<where> |
|
|
<where> |
|
|
b.site = #{site} and c.bu_no = #{buNo} |
|
|
b.site = #{site} and c.bu_no = #{buNo} |
|
|
<if test = "adminID != null and adminID != ''"> |
|
|
<if test = "adminID != null and adminID != ''"> |
|
|
@ -1515,6 +1520,12 @@ |
|
|
<if test = "adminName != null and adminName != ''"> |
|
|
<if test = "adminName != null and adminName != ''"> |
|
|
AND a.user_display LIKE '%' + #{adminName}+'%' |
|
|
AND a.user_display LIKE '%' + #{adminName}+'%' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test = "buDesc != null and buDesc != ''"> |
|
|
|
|
|
AND dbo.get_bu_desc(a.site,c.bu_no) LIKE '%' + #{buDesc}+'%' |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test = "roleName != null and roleName != ''"> |
|
|
|
|
|
AND e.role_name LIKE '%' + #{roleName}+'%' |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|