bug修复
This commit is contained in:
@ -49,7 +49,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectZcCarList" parameterType="ZcCar" resultMap="ZcCarResult">
|
||||
<include refid="selectZcCarVo"/>
|
||||
<where>
|
||||
<where>
|
||||
del_flag = 0
|
||||
<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>
|
||||
@ -86,7 +87,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="checkVinUnique" resultType="com.ruoyi.operation.domain.ZcCar">
|
||||
SELECT * FROM zc_car WHERE del_flag = 0 AND vin = #{vin}
|
||||
</select>
|
||||
|
||||
<select id="checkLicensePlateUnique" resultType="com.ruoyi.operation.domain.ZcCar">
|
||||
SELECT * FROM zc_car WHERE del_flag = 0 AND license_plate = #{licensePlate} limit 1
|
||||
</select>
|
||||
<select id="checkLotNumberUnique" resultType="com.ruoyi.operation.domain.ZcCar">
|
||||
SELECT * FROM zc_car WHERE del_flag = 0 AND lot_number = #{lotNumber} limit 1
|
||||
</select>
|
||||
<insert id="insertZcCar" parameterType="ZcCar" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into zc_car
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
Reference in New Issue
Block a user