bug修复

This commit is contained in:
19173159168
2025-09-27 00:19:05 +08:00
parent c9d8681199
commit 987e80d657
17 changed files with 130 additions and 32 deletions

View File

@ -111,6 +111,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkPhoneUnique" parameterType="string" resultType="com.ruoyi.operation.domain.Company">
SELECT * FROM zc_company WHERE del_flag = 0 AND phone = #{phone}
</select>
<select id="checkNameUnique" resultType="com.ruoyi.operation.domain.Company">
SELECT * FROM zc_company WHERE del_flag = 0 AND company_name = #{companyName} limit 1
</select>
<insert id="insertCompany" parameterType="Company" useGeneratedKeys="true" keyProperty="id">
insert into zc_company

View File

@ -50,6 +50,7 @@
<select id="selectZcCarDamageList" parameterType="ZcCarDamage" resultMap="ZcCarDamageResult">
<include refid="selectZcCarDamageVo"/>
<where>
a.del_flag = 0
<if test="carId != null "> and a.car_id = #{carId}</if>
<if test="damageType != null and damageType != ''"> and a.damage_type = #{damageType}</if>
<if test="damageReason != null and damageReason != ''"> and a.damage_reason = #{damageReason}</if>

View File

@ -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=",">

View File

@ -47,7 +47,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
<select id="selectZcCarModelList" parameterType="ZcCarModel" resultMap="ZcCarModelResult">
<include refid="selectZcCarModelVo"/>
<where>
<where>
del_flag = 0
<if test="modelName != null and modelName != ''"> and model_name like concat('%', #{modelName}, '%')</if>
<if test="brandId != null"> and brand_id = #{brandId}</if>
<if test="brandName != null and brandName != ''"> and brand_name like concat('%', #{brandName}, '%')</if>

View File

@ -88,7 +88,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</select>
<select id="selectZcRentBatteyRuleByIds" resultMap="ZcRentBatteyRuleResult">
select * from zc_rent_battey_rule where id in
<include refid="selectZcRentBatteyRuleVo2"/>
where a.id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>