select id, group_id, stake_mark_id, direction, road_id, handling_person, end_stake_mark_id, start_time, end_time, event_level, event_category, event_type, event_subclass, impact_level, event_cause, description, handling_result, other_config, event_source, event_nature, remark, create_time, update_time from dc_event
select id, group_id, stake_mark_id, direction, road_id, handling_person, end_stake_mark_id, start_time, end_time, event_level, event_category,dc_event.event_type AS event_type, event_subclass, impact_level, event_cause, description, handling_result, other_config, event_source, event_nature, remark, create_time, update_time,dc_event_type.event_name AS event_name from dc_event
SELECT
dc_event.id AS id,
dc_event.group_id AS group_id,
dc_event.stake_mark_id,
dc_event.direction,
dc_event.road_id,
dc_event.handling_person,
dc_event.end_stake_mark_id,
dc_event.start_time,
dc_event.end_time,
dc_event.event_level,
dc_event.event_category,
dc_event.event_type AS event_type,
dc_event.event_subclass,
dc_event.impact_level,
dc_event.event_cause,
dc_event.description,
dc_event.handling_result,
dc_event.other_config,
dc_event.event_source,
dc_event.event_nature,
dc_event.remark ,
dc_event.create_time,
dc_event.update_time,
dc_event_type.event_name AS event_name,
dc_process_config.node_node AS node_node,
dc_process_config.process_node AS process_node,
dc_process_config.common_phrases AS common_phrases,
dc_dispatch.id AS dc_dispatch_id,
dc_dispatch.organization_id,
dc_dispatch.dispatch_name,
dc_dispatch.dispatch_status,
dc_dispatch.remark as dc_dispatch_remark,
dc_dispatch.end_time as dc_dispatch_end_time,
dc_dispatch.start_time as dc_dispatch_start_time,
dc_dispatch.event_id,
dc_organization.id as dc_organization_id,
dc_organization.parent_id,
dc_organization.organization_type,
dc_organization.organization_name,
dc_organization.organization_address,
dc_organization.stake_mark_id as dc_organization_stake_mark_id,
dc_organization.rescue_unit,
dc_organization.description as dc_organization_description,
dc_vehicles.vehicle_plate,
dc_vehicles.vehicle_type,
dc_vehicles.vehicle_status,
dc_vehicles.remark as dc_vehicles_remark,
dc_employees.post_id,
dc_employees.name,
dc_employees.contact_number
FROM dc_event
insert into dc_event
id,
group_id,
stake_mark_id,
direction,
road_id,
handling_person,
end_stake_mark_id,
start_time,
end_time,
event_level,
event_category,
event_type,
event_subclass,
impact_level,
event_cause,
description,
handling_result,
other_config,
event_source,
event_nature,
remark,
create_time,
update_time,
#{id},
#{groupId},
#{stakeMarkId},
#{direction},
#{roadId},
#{handlingPerson},
#{endStakeMarkId},
#{startTime},
#{endTime},
#{eventLevel},
#{eventCategory},
#{eventType},
#{eventSubclass},
#{impactLevel},
#{eventCause},
#{description},
#{handlingResult},
#{otherConfig},
#{eventSource},
#{eventNature},
#{remark},
#{createTime},
#{updateTime},
update dc_event
group_id = #{groupId},
stake_mark_id = #{stakeMarkId},
direction = #{direction},
road_id = #{roadId},
handling_person = #{handlingPerson},
end_stake_mark_id = #{endStakeMarkId},
start_time = #{startTime},
end_time = #{endTime},
event_level = #{eventLevel},
event_category = #{eventCategory},
event_type = #{eventType},
event_subclass = #{eventSubclass},
impact_level = #{impactLevel},
event_cause = #{eventCause},
description = #{description},
handling_result = #{handlingResult},
other_config = #{otherConfig},
event_source = #{eventSource},
event_nature = #{eventNature},
remark = #{remark},
create_time = #{createTime},
update_time = #{updateTime},
where id = #{id}
delete from dc_event where id = #{id}
delete from dc_event where id in
#{id}