left join tab_haoban_external_clerk_related related on related.staff_id = #{staffId} and related.status_flag in (1, 3, 4) and customer.member_id = related.member_id
</if>
<iftest="bizIds != null and bizIds.size > 0">
<!-- 按素材 -->
INNER JOIN (
SELECT `enterprise_id`,`clerk_id`,`member_id`
FROM tab_haoban_interact_record
...
...
@@ -266,7 +267,7 @@
<iftest="enterpriseId != null and enterpriseId != ''">
and customer.enterprise_id = #{enterpriseId}
</if>
<iftest="search != null and search != ''">
<iftest="search != null and search != '' and searchType != null and searchType == 1">
<!-- 姓名、昵称、手机号 -->
and ( customer.member_name like concat('%', #{search}, '%') or customer.member_nick_name like concat('%', #{search}, '%') or customer.member_phone like concat('%', #{search}, '%') )