SELECT rci.id,
rci.rescue_car_type,
rci.rescue_car_num,
rci.rescue_car_brand,
rci.car_own,
rci.car_image,
rci.drive_license_image,
rci.car_buy_time,
rci.car_license_color,
rci.car_use_nature,
rci.frame_number,
rci.car_keep_time,
rci.car_insurance_time,
rci.car_check_time,
rci.possessor_id,
rci.car_category
FROM rescue_car_info rci
where rci.deleted = '0'
insert into rescue_car_info
rescue_car_type,
rescue_car_num,
rescue_car_brand,
car_own,
car_image,
drive_license_image,
car_buy_time,
car_license_color,
car_use_nature,
frame_number,
car_keep_time,
car_insurance_time,
car_check_time,
possessor_id,
car_category,
#{rescueCarType},
#{rescueCarNum},
#{rescueCarBrand},
#{carOwn},
#{carImage},
#{driveLicenseImage},
#{carBuyTime},
#{carLicenseColor},
#{carUseNature},
#{frameNumber},
#{carKeepTime},
#{carInsuranceTime},
#{carCheckTime},
#{possessorId},
#{carCategory},
update rescue_car_info
rescue_car_type = #{rescueCarType},
rescue_car_num = #{rescueCarNum},
rescue_car_brand = #{rescueCarBrand},
car_own = #{carOwn},
car_image = #{carImage},
drive_license_image = #{driveLicenseImage},
car_buy_time = #{carBuyTime},
car_license_color = #{carLicenseColor},
car_use_nature = #{carUseNature},
frame_number = #{frameNumber},
car_keep_time = #{carKeepTime},
car_insurance_time = #{carInsuranceTime},
car_check_time = #{carCheckTime},
possessor_id = #{possessorId},
car_category = #{carCategory},
where id = #{id}
update rescue_car_info
SET possessor_id = #{possessorId}
where id = #{id}
delete
from rescue_car_info
where id = #{id}
delete from rescue_car_info where id in
#{id}