add 商户keyword搜索增加email && address

master
luoyang 5 years ago
parent fb8fd1cf71
commit 5c2e8f4387

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.2.38</version> <version>1.2.39</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

@ -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

@ -84,6 +84,8 @@
<option value="company_name">Company Name</option> <option value="company_name">Company Name</option>
<option value="business_name">Business Name</option> <option value="business_name">Business Name</option>
<option value="remark">Remark</option> <option value="remark">Remark</option>
<option value="email">Email</option>
<option value="address">Address</option>
</select> </select>
</label> </label>
<div class="col-xs-8 col-sm-4"> <div class="col-xs-8 col-sm-4">

@ -83,6 +83,8 @@
<option value="company_name">Company Name</option> <option value="company_name">Company Name</option>
<option value="business_name">Business Name</option> <option value="business_name">Business Name</option>
<option value="remark">Remark</option> <option value="remark">Remark</option>
<option value="email">Email</option>
<option value="address">Address</option>
</select> </select>
</label> </label>
<div class="col-xs-8 col-sm-4"> <div class="col-xs-8 col-sm-4">

Loading…
Cancel
Save