优化机构
This commit is contained in:
@@ -82,6 +82,8 @@
|
||||
on u.usid=up.user_id
|
||||
left join ts_position p
|
||||
on up.position_id=p.id
|
||||
left join ts_institution ti
|
||||
on ti.id = u.INSTITUTION_ID
|
||||
where 1=1
|
||||
<if test="TsUser.uname != null and TsUser.uname != '' ">
|
||||
and (u.uname like concat('%',#{TsUser.uname},'%') or u.ACCOUNT like concat(#{TsUser.uname},'%'))
|
||||
@@ -90,9 +92,9 @@
|
||||
and u.email like concat('%',#{TsUser.email},'%')
|
||||
</if>
|
||||
<if test=" null != ids and ids.size()> 0">
|
||||
and INSTITUTION_ID in
|
||||
<foreach item="id" collection="ids" open="(" separator="," close=")" index="index">
|
||||
#{id}
|
||||
and
|
||||
<foreach item="id" collection="ids" open="(" separator="or" close=")" index="index">
|
||||
ti.parent_ids like concat('%',#{id},'%')
|
||||
</foreach>
|
||||
</if>
|
||||
ORDER BY p.id is null,p.create_time
|
||||
@@ -105,6 +107,8 @@
|
||||
on u.usid=up.user_id
|
||||
left join ts_position p
|
||||
on up.position_id=p.id
|
||||
left join ts_institution ti
|
||||
on ti.id = u.INSTITUTION_ID
|
||||
where 1=1
|
||||
<if test="TsUser.uname != null and TsUser.uname != '' ">
|
||||
and u.uname like concat('%',#{TsUser.uname},'%')
|
||||
@@ -113,9 +117,9 @@
|
||||
and u.email like concat('%',#{TsUser.email},'%')
|
||||
</if>
|
||||
<if test=" null != ids and ids.size()> 0">
|
||||
and INSTITUTION_ID in
|
||||
<foreach item="id" collection="ids" open="(" separator="," close=")" index="index">
|
||||
#{id}
|
||||
and
|
||||
<foreach item="id" collection="ids" open="(" separator="or" close=")" index="index">
|
||||
ti.parent_ids like concat('%',#{id},'%')
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user