insert into sys_car
car_id,
car_brand,
car_type,
car_driver,
car_phone,
car_notes,
is_use,
company_id,
create_user,
#{carId,jdbcType=VARCHAR},
#{carBrand,jdbcType=VARCHAR},
#{carType,jdbcType=VARCHAR},
#{carDriver,jdbcType=VARCHAR},
#{carPhone,jdbcType=VARCHAR},
#{carNotes,jdbcType=VARCHAR},
#{isUse,jdbcType=INTEGER},
#{companyId,jdbcType=VARCHAR},
#{createUser,jdbcType=VARCHAR},
update sys_car set
is_use=2
where car_id=#{carId}
update sys_car
car_brand = #{carBrand,jdbcType=VARCHAR},
car_type = #{carType,jdbcType=VARCHAR},
car_driver = #{carDriver,jdbcType=VARCHAR},
car_phone = #{carPhone,jdbcType=VARCHAR},
car_notes = #{carNotes,jdbcType=VARCHAR},
is_use = #{isUse,jdbcType=INTEGER},
company_id = #{companyId,jdbcType=VARCHAR},
where car_id = #{carId,jdbcType=VARCHAR}