INSERT INTO
dc_gantry_metrics_statistics_data
(
id,
gantry_code,
statistical_date,
period_type,
crowding_rate,
traffic_composition_rate,
saturation_rate,
create_time
)
VALUES
(
#{id},
#{gantryCode},
#{statisticalDate},
#{periodType},
#{crowdingRate},
#{trafficCompositionRate},
#{saturationRate},
NOW())
ON DUPLICATE KEY UPDATE
gantry_code = VALUES(gantry_code),
statistical_date = VALUES(statistical_date),
period_type = VALUES(period_type),
crowding_rate = VALUES(crowding_rate),
traffic_composition_rate = VALUES(traffic_composition_rate),
saturation_rate = VALUES(saturation_rate),
update_time = NOW()
INSERT INTO
dc_gantry_metrics_statistics_data
(
id,
gantry_code,
statistical_date,
period_type,
crowding_rate,
traffic_composition_rate,
saturation_rate,
create_time
)
VALUES
(
#{item.id},
#{item.gantryCode},
#{item.statisticalDate},
#{item.periodType},
#{item.crowdingRate},
#{item.trafficCompositionRate},
#{item.saturationRate},
NOW()
)
ON DUPLICATE KEY UPDATE
gantry_code = VALUES(gantry_code),
statistical_date = VALUES(statistical_date),
period_type = VALUES(period_type),
crowding_rate = VALUES(crowding_rate),
traffic_composition_rate = VALUES(traffic_composition_rate),
saturation_rate = VALUES(saturation_rate),
update_time = NOW()