|
@@ -187,14 +187,14 @@
|
|
|
<if test="organId != null">
|
|
|
AND FIND_IN_SET(su.organ_id_,#{organId})
|
|
|
</if>
|
|
|
+ <if test="search != null">
|
|
|
+ AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%'))
|
|
|
+ </if>
|
|
|
</where>
|
|
|
ORDER BY e.create_time_ DESC <include refid="global.limit"/>) ue
|
|
|
LEFT JOIN sys_user_role sur ON sur.user_id_ = ue.user_id_
|
|
|
LEFT JOIN sys_role sr ON sr.id_ = sur.role_id_
|
|
|
LEFT JOIN organization o ON FIND_IN_SET(o.id_,ue.organ_id_)
|
|
|
- <if test="search != null">
|
|
|
- WHERE (ue.real_name_ LIKE CONCAT('%',#{search},'%') OR ue.phone_ LIKE CONCAT('%',#{search},'%'))
|
|
|
- </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="queryEmployByOrganIdCount" resultType="int">
|