Commit 241bff2b by 杨林龙

查询试驾车列表时 修改查询为模糊查询

1 parent 67429624
...@@ -375,13 +375,13 @@ ...@@ -375,13 +375,13 @@
and tvd.del_flag = 0 and tvd.del_flag = 0
and td.del_flag = 0 and td.del_flag = 0
<if test="sn != null and sn !=''"> <if test="sn != null and sn !=''">
and td.sn = #{sn} and td.sn like concat('%',#{sn},'%')
</if> </if>
<if test="ownerName != null and ownerName !=''"> <if test="ownerName != null and ownerName !=''">
and tv.owner_name = #{ownerName} and tv.owner_name like concat('%',#{ownerName},'%')
</if> </if>
<if test="vin != null and vin !=''"> <if test="vin != null and vin !=''">
and tv.vin = #{vin} and tv.vin = like concat('%',#{vin},'%')
</if> </if>
<if test="buyDateStart != null and buyDateStart !=''"> <if test="buyDateStart != null and buyDateStart !=''">
and tv.buy_date &gt;= #{buyDateStart} and tv.buy_date &gt;= #{buyDateStart}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!