|
@@ -185,10 +185,7 @@
|
|
|
<where>
|
|
|
su.user_type_ = 'SYSTEM'
|
|
|
<if test="organIds != null">
|
|
|
- AND
|
|
|
- <foreach collection="organIds" item="item" open="(" close=")" separator=" OR ">
|
|
|
- FIND_IN_SET(#{item},e.organ_id_list_)
|
|
|
- </foreach>
|
|
|
+ AND INTE_ARRAY(e.organ_id_list_,#{organIds})
|
|
|
</if>
|
|
|
<if test="search != null">
|
|
|
AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%'))
|
|
@@ -206,10 +203,7 @@
|
|
|
<where>
|
|
|
su.user_type_ = 'SYSTEM'
|
|
|
<if test="organIds != null">
|
|
|
- AND
|
|
|
- <foreach collection="organIds" item="item" open="(" close=")" separator=" OR ">
|
|
|
- FIND_IN_SET(#{item},e.organ_id_list_)
|
|
|
- </foreach>
|
|
|
+ AND INTE_ARRAY(e.organ_id_list_,#{organIds})
|
|
|
</if>
|
|
|
<if test="search != null">
|
|
|
AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%'))
|