|
|
@ -142,7 +142,7 @@
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
and (c.client_moniker=#{search_text} or c.short_name like #{name_pattern} or c.company_name like
|
|
|
|
and (c.client_moniker=#{search_text} or c.short_name like #{name_pattern} or c.company_name like
|
|
|
|
#{name_pattern} or c.business_name like #{name_pattern} or c.remark like
|
|
|
|
#{name_pattern} or c.business_name like #{name_pattern} or c.remark like
|
|
|
|
#{name_pattern} or c.contact_email=#{search_text})
|
|
|
|
#{name_pattern} or c.contact_email=#{search_text} or c.address = #{search_text})
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="text_type=='client_moniker'">
|
|
|
|
<if test="text_type=='client_moniker'">
|
|
|
|
and c.client_moniker=#{search_text}
|
|
|
|
and c.client_moniker=#{search_text}
|
|
|
@ -162,6 +162,12 @@
|
|
|
|
<if test="text_type=='remark'">
|
|
|
|
<if test="text_type=='remark'">
|
|
|
|
and c.remark like #{name_pattern}
|
|
|
|
and c.remark like #{name_pattern}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="text_type=='email'">
|
|
|
|
|
|
|
|
and c.contact_email like #{name_pattern}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="text_type=='address'">
|
|
|
|
|
|
|
|
and c.address like #{name_pattern}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="org_id!=null and org_ids==null">and c.org_id=#{org_id}</if>
|
|
|
|
<if test="org_id!=null and org_ids==null">and c.org_id=#{org_id}</if>
|
|
|
|
<if test="org_ids!=null">and c.org_id in
|
|
|
|
<if test="org_ids!=null">and c.org_id in
|
|
|
@ -317,7 +323,7 @@
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
and (c.client_moniker=#{search_text} or c.short_name like #{name_pattern} or c.company_name like
|
|
|
|
and (c.client_moniker=#{search_text} or c.short_name like #{name_pattern} or c.company_name like
|
|
|
|
#{name_pattern} or c.business_name like #{name_pattern} or c.remark like
|
|
|
|
#{name_pattern} or c.business_name like #{name_pattern} or c.remark like
|
|
|
|
#{name_pattern} or c.contact_email=#{search_text})
|
|
|
|
#{name_pattern} or c.contact_email=#{search_text} or c.address = #{search_text})
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="text_type=='client_moniker'">
|
|
|
|
<if test="text_type=='client_moniker'">
|
|
|
|
and c.client_moniker=#{search_text}
|
|
|
|
and c.client_moniker=#{search_text}
|
|
|
@ -337,6 +343,12 @@
|
|
|
|
<if test="text_type=='remark'">
|
|
|
|
<if test="text_type=='remark'">
|
|
|
|
and c.remark like #{name_pattern}
|
|
|
|
and c.remark like #{name_pattern}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="text_type=='email'">
|
|
|
|
|
|
|
|
and c.contact_email like #{name_pattern}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="text_type=='address'">
|
|
|
|
|
|
|
|
and c.address like #{name_pattern}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="org_id!=null and org_ids==null">and c.org_id=#{org_id}</if>
|
|
|
|
<if test="org_id!=null and org_ids==null">and c.org_id=#{org_id}</if>
|
|
|
|
<if test="org_ids!=null">and c.org_id in
|
|
|
|
<if test="org_ids!=null">and c.org_id in
|
|
|
|