|
@@ -7,6 +7,7 @@
|
|
t.id,
|
|
t.id,
|
|
t.name,
|
|
t.name,
|
|
t.loginName,
|
|
t.loginName,
|
|
|
|
+ t.orgId,
|
|
t.orgName,
|
|
t.orgName,
|
|
t.roleNameStr,
|
|
t.roleNameStr,
|
|
t.enable,
|
|
t.enable,
|
|
@@ -17,7 +18,7 @@
|
|
from
|
|
from
|
|
(
|
|
(
|
|
select
|
|
select
|
|
- tbu.id, tbu.mobile_number as mobileNumber, tbu.login_name as loginName, tbu.name, group_concat(tbr.role_code) as roleCodeStr, group_concat(tbr.role_name) as roleNameStr, tbu.enable,(
|
|
|
|
|
|
+ tbu.org_id as orgId,tbu.id, tbu.mobile_number as mobileNumber, tbu.login_name as loginName, tbu.name, group_concat(tbr.role_code) as roleCodeStr, group_concat(tbr.role_name) as roleNameStr, tbu.enable,(
|
|
select
|
|
select
|
|
t.name
|
|
t.name
|
|
from
|
|
from
|
|
@@ -55,7 +56,7 @@
|
|
<if test="enable != null and enable != '' or enable == 0">
|
|
<if test="enable != null and enable != '' or enable == 0">
|
|
and tbu.enable = #{enable}
|
|
and tbu.enable = #{enable}
|
|
</if>
|
|
</if>
|
|
- </where> group by tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
|
|
|
|
|
|
+ </where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
|
|
<where>
|
|
<where>
|
|
<if test="role != null and role != ''">
|
|
<if test="role != null and role != ''">
|
|
and t.roleCodeStr like concat('%', #{role}, '%')
|
|
and t.roleCodeStr like concat('%', #{role}, '%')
|