[修改] 用户列表,角色搜索
This commit is contained in:
@@ -9,13 +9,15 @@
|
||||
GROUP_CONCAT( DISTINCT org.LONG_NAME ORDER BY org.ID DESC )as ORGNAME
|
||||
from
|
||||
(
|
||||
select * from TS_USER
|
||||
where del_flag = 0
|
||||
select tu.* from TS_USER tu
|
||||
left join TR_USER_ROLE tur on tu.USID=tur.USER_ID
|
||||
left JOIN TS_ROLE tr on tur.ROLE_ID=tr.ID
|
||||
where tu.del_flag = 0
|
||||
<if test="account !='' and account !=null">
|
||||
and ACCOUNT like CONCAT('%',CONCAT(#{account},'%'))
|
||||
</if>
|
||||
<if test="roleName !='' and roleName !=null">
|
||||
and NAME like CONCAT('%',CONCAT(#{roleName},'%'))
|
||||
and tr.NAME like CONCAT('%',CONCAT(#{roleName},'%'))
|
||||
</if>
|
||||
ORDER BY UPDATE_TIME DESC
|
||||
LIMIT #{current},#{size}
|
||||
@@ -31,14 +33,17 @@
|
||||
</select>
|
||||
|
||||
<select id="listCount" resultType="java.lang.Long">
|
||||
select count(1) from TS_USER
|
||||
where del_flag = 0
|
||||
select count(1) from TS_USER tu
|
||||
left join TR_USER_ROLE tur on tu.USID=tur.USER_ID
|
||||
left JOIN TS_ROLE tr on tur.ROLE_ID=tr.ID
|
||||
where tu.del_flag = 0
|
||||
<if test="account !='' and account !=null">
|
||||
and ACCOUNT like CONCAT('%',CONCAT(#{account},'%'))
|
||||
</if>
|
||||
<if test="roleName !='' and roleName !=null">
|
||||
and NAME like CONCAT('%',CONCAT(#{roleName},'%'))
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getUserCount" resultType="java.lang.Long">
|
||||
|
||||
Reference in New Issue
Block a user