select end_stake_mark,location_type,location_description,detailed_reasons,id, congestion_mileage, congestion_cause, facility_id, ramp_id, location,max_congestion_mileage from dc_event_traffic_congestion SELECT dc_event_traffic_congestion.congestion_cause as congestion_cause, dc_event_traffic_congestion.congestion_mileage as congestion_mileage, dc_event_traffic_congestion.facility_id as facility_id, dc_event_traffic_congestion.id as id, dc_event_traffic_congestion.location as location, dc_event_traffic_congestion.ramp_id as ramp_id, dc_event_traffic_congestion.max_congestion_mileage as max_congestion_mileage, dc_event_traffic_congestion.location_type as location_type, dc_event_traffic_congestion.location_description as location_description, dc_event_traffic_congestion.detailed_reasons as detailed_reasons, dc_event_traffic_congestion.end_stake_mark as end_stake_mark, dc_facility.other_config as other_config, dc_facility.remark as remark, dc_facility.stake_mark as stake_mark, dc_facility.facility_type as facility_type, dc_facility.facility_name as facility_name, dc_facility.direction as direction FROM dc_event_traffic_congestion insert into dc_event_traffic_congestion id, congestion_mileage, congestion_cause, facility_id, ramp_id, location, max_congestion_mileage, location_description, location_type, detailed_reasons, end_stake_mark, #{id}, #{congestionMileage}, #{congestionCause}, #{facilityId}, #{rampId}, #{location}, #{maxCongestionMileage}, #{locationDescription}, #{locationType}, #{detailedReasons}, #{endStakeMark}, update dc_event_traffic_congestion congestion_mileage = #{congestionMileage}, congestion_cause = #{congestionCause}, facility_id = #{facilityId}, ramp_id = #{rampId}, location = #{location}, max_congestion_mileage = #{maxCongestionMileage}, location_description = #{locationDescription}, location_type = #{locationType}, detailed_reasons = #{detailedReasons}, end_stake_mark = #{endStakeMark}, where id = #{id} delete from dc_event_traffic_congestion where id = #{id} delete from dc_event_traffic_congestion where id in #{id}