select stats_id, vehicle_id, vehicle_no, stat_date, total_mileage, task_mileage,
non_task_mileage, task_ratio, gps_point_count, task_count, create_time, update_time
from tb_vehicle_mileage_stats
insert into tb_vehicle_mileage_stats
vehicle_id,
vehicle_no,
stat_date,
total_mileage,
task_mileage,
non_task_mileage,
task_ratio,
gps_point_count,
task_count,
create_time
#{vehicleId},
#{vehicleNo},
#{statDate},
#{totalMileage},
#{taskMileage},
#{nonTaskMileage},
#{taskRatio},
#{gpsPointCount},
#{taskCount},
NOW()
update tb_vehicle_mileage_stats
vehicle_no = #{vehicleNo},
total_mileage = #{totalMileage},
task_mileage = #{taskMileage},
non_task_mileage = #{nonTaskMileage},
task_ratio = #{taskRatio},
gps_point_count = #{gpsPointCount},
task_count = #{taskCount},
update_time = NOW()
where stats_id = #{statsId}
delete from tb_vehicle_mileage_stats where stats_id = #{statsId}
delete from tb_vehicle_mileage_stats where stats_id in
#{statsId}