select id, inspection_order_id, user_id, user_name, buy_name, buy_phone, user_address, unit_name, partner_id, work_id, worker_name, worker_phone, worker_avatar, category_id, car_num, car_model, car_nature, car_status, car_id_no, is_pass, is_retrial, remark, customer_source, status, start_time, end_time, make_cert, year, month, day, create_time, creator, update_time, updater, next_maintenance_date, next_inspection_date, other_phone, driver_licenes_img, is_pay_online, is_pick_car from del_inspection_info
insert into del_inspection_info
id,
inspection_order_id,
user_id,
user_name,
buy_name,
buy_phone,
user_address,
unit_name,
partner_id,
work_id,
worker_name,
worker_phone,
worker_avatar,
category_id,
car_num,
car_model,
car_nature,
car_status,
car_id_no,
is_pass,
is_retrial,
remark,
customer_source,
status,
start_time,
end_time,
make_cert,
year,
month,
day,
create_time,
creator,
update_time,
updater,
next_maintenance_date,
next_inspection_date,
other_phone,
driver_licenes_img,
is_pay_online,
is_pick_car,
#{id},
#{inspectionOrderId},
#{userId},
#{userName},
#{buyName},
#{buyPhone},
#{userAddress},
#{unitName},
#{partnerId},
#{workId},
#{workerName},
#{workerPhone},
#{workerAvatar},
#{categoryId},
#{carNum},
#{carModel},
#{carNature},
#{carStatus},
#{carIdNo},
#{isPass},
#{isRetrial},
#{remark},
#{customerSource},
#{status},
#{startTime},
#{endTime},
#{makeCert},
#{year},
#{month},
#{day},
#{createTime},
#{creator},
#{updateTime},
#{updater},
#{nextMaintenanceDate},
#{nextInspectionDate},
#{otherPhone},
#{driverLicenesImg},
#{isPayOnline},
#{isPickCar},
update del_inspection_info
inspection_order_id = #{inspectionOrderId},
user_id = #{userId},
user_name = #{userName},
buy_name = #{buyName},
buy_phone = #{buyPhone},
user_address = #{userAddress},
unit_name = #{unitName},
partner_id = #{partnerId},
work_id = #{workId},
worker_name = #{workerName},
worker_phone = #{workerPhone},
worker_avatar = #{workerAvatar},
category_id = #{categoryId},
car_num = #{carNum},
car_model = #{carModel},
car_nature = #{carNature},
car_status = #{carStatus},
car_id_no = #{carIdNo},
is_pass = #{isPass},
is_retrial = #{isRetrial},
remark = #{remark},
customer_source = #{customerSource},
status = #{status},
start_time = #{startTime},
end_time = #{endTime},
make_cert = #{makeCert},
year = #{year},
month = #{month},
day = #{day},
create_time = #{createTime},
creator = #{creator},
update_time = #{updateTime},
updater = #{updater},
next_maintenance_date = #{nextMaintenanceDate},
next_inspection_date = #{nextInspectionDate},
other_phone = #{otherPhone},
driver_licenes_img = #{driverLicenesImg},
is_pay_online = #{isPayOnline},
is_pick_car = #{isPickCar},
where id = #{id}
delete from del_inspection_info where id = #{id}
delete from del_inspection_info where id in
#{id}