车辆导入导出

This commit is contained in:
19173159168
2025-07-16 23:17:01 +08:00
parent b2151b00d6
commit d71b9eae03
10 changed files with 360 additions and 26 deletions

View File

@ -163,6 +163,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="extend5 != null">#{extend5},</if>
</trim>
</insert>
<insert id="batchInsert">
INSERT INTO zc_car (vin, license_plate, brand_name,
model_name, lot_number, purchase_date,
purchase_price, belong_type, iot_code,
operator_id, operator_name,
store_id, store_name,
create_by, create_time, update_time, remark)
VALUES
<foreach collection="list" item="item" separator=",">
(#{item.vin}, #{item.licensePlate}, #{item.brandName}
#{item.modelName}, #{item.lotNumber}, #{item.purchaseDate}
#{item.purchasePrice}, #{item.belongType}, #{item.iotCode}
#{item.operatorId}, #{item.operatorName},
#{item.storeId}, #{item.storeName},
#{item.createBy}, #{item.createTime}, #{item.updateTime},#{item.remark})
</foreach>
</insert>
<update id="updateZcCar" parameterType="ZcCar">
update zc_car
@ -186,7 +203,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="iotCode != null">iot_code = #{iotCode},</if>
<if test="operatorId != null">operator_id = #{operatorId},</if>
<if test="operatorName != null">operator_name = #{operatorName},</if>
<if test="storeId != null">store_id = #{storeId},</if>
<if test="storeName != null">store_name = #{storeName},</if>
<if test="packageId != null">package_id = #{packageId},</if>
<if test="packageName != null">package_name = #{packageName},</if>
@ -202,6 +218,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="extend3 != null">extend3 = #{extend3},</if>
<if test="extend4 != null">extend4 = #{extend4},</if>
<if test="extend5 != null">extend5 = #{extend5},</if>
store_id = #{storeId}
</trim>
where id = #{id}
</update>