Commit 4ae2430a by 杨林龙

添加下拉选模糊查询接口 yangll

1 parent d70d3ae0
......@@ -199,7 +199,10 @@
<select id="getCustomerNameList" resultType="java.lang.String">
select distinct customer_name
from t_platform_customer
where customer_name like '%${customerName}%'
where 1 = 1
<if test="customerName != null and customerName != ''">
and customer_name like '%${customerName}%'
</if>
</select>
<select id="getCustomerCount" resultType="java.lang.Integer">
......
......@@ -42,7 +42,7 @@
left join t_platform_customer b on a.customer_id = b.id
where 1 = 1
<if test="customerName != null and customerName != ''">
and b.customer_name like '%${customerName}%'
and b.customer_name = #{customerName,jdbcType=VARCHAR}
</if>
<if test="customerNameAuth != null and customerNameAuth != ''">
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
......
......@@ -53,7 +53,7 @@
left join t_sys_area d on a.city = d.id
where 1 = 1
<if test="customerName != null and customerName != ''">
and b.customer_name like '%${customerName}%'
and b.customer_name = #{customerName,jdbcType=VARCHAR}
</if>
<if test="customerNameAuth != null and customerNameAuth != ''">
and b.customer_name = #{customerNameAuth,jdbcType=VARCHAR}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!