查询机构人员,模糊查询,不需要id
This commit is contained in:
@@ -34,7 +34,11 @@
|
|||||||
on u.usid=up.user_id
|
on u.usid=up.user_id
|
||||||
left join ts_position p
|
left join ts_position p
|
||||||
on up.position_id=p.id
|
on up.position_id=p.id
|
||||||
where u.institution_id=#{TsUser.institutionId}
|
where 1=1
|
||||||
|
<if test="TsUser.institutionId !=null and TsUser.institutionId!=''">
|
||||||
|
and u.institution_id=#{TsUser.institutionId}
|
||||||
|
</if>
|
||||||
|
|
||||||
<if test="TsUser.uname != null and TsUser.uname != '' ">
|
<if test="TsUser.uname != null and TsUser.uname != '' ">
|
||||||
and u.uname like concat('%',#{TsUser.uname},'%')
|
and u.uname like concat('%',#{TsUser.uname},'%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user