select id, car_id, maintenance_date, maintenance_mileage, inspection_date, insurance_date, next_maintenance_date, next_maintenance_mileage, create_time, create_by, update_time, update_by from drive_school_upkeep
insert into drive_school_upkeep
car_id,
maintenance_date,
maintenance_mileage,
inspection_date,
insurance_date,
next_maintenance_date,
next_maintenance_mileage,
create_time,
create_by,
update_time,
update_by,
#{carId},
#{maintenanceDate},
#{maintenanceMileage},
#{inspectionDate},
#{insuranceDate},
#{nextMaintenanceDate},
#{nextMaintenanceMileage},
#{createTime},
#{createBy},
#{updateTime},
#{updateBy},
update drive_school_upkeep
car_id = #{carId},
maintenance_date = #{maintenanceDate},
maintenance_mileage = #{maintenanceMileage},
inspection_date = #{inspectionDate},
insurance_date = #{insuranceDate},
next_maintenance_date = #{nextMaintenanceDate},
next_maintenance_mileage = #{nextMaintenanceMileage},
create_time = #{createTime},
create_by = #{createBy},
update_time = #{updateTime},
update_by = #{updateBy},
where id = #{id}
delete from drive_school_upkeep where id = #{id}
delete from drive_school_upkeep where id in
#{id}