输入条件支持模糊查询

This commit is contained in:
19173159168
2025-09-09 23:51:42 +08:00
parent 759f824cf8
commit 07d2eb3efd
15 changed files with 31 additions and 32 deletions

View File

@ -50,8 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectZcCarList" parameterType="ZcCar" resultMap="ZcCarResult">
<include refid="selectZcCarVo"/>
<where>
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
<if test="licensePlate != null and licensePlate != ''"> and license_plate = #{licensePlate}</if>
<if test="vin != null and vin != ''"> and vin like concat('%', #{vin}, '%')</if>
<if test="licensePlate != null and licensePlate != ''"> and license_plate like concat('%', #{licensePlate}, '%')</if>
<if test="brandId != null "> and brand_id = #{brandId}</if>
<if test="brandName != null and brandName != ''"> and brand_name like concat('%', #{brandName}, '%')</if>
<if test="modelId != null "> and model_id = #{modelId}</if>