select id, dept_id, stake_mark, direction, user_id, start_time, end_time, estimated_end_time, event_level, event_type, event_subclass, event_cause, description, event_state, event_source, event_nature, remark, create_time, update_time, event_source_tips, in_tunnel from dc_event
select dc_event.id AS id,
dc_event.stake_mark,
dc_event.direction,
dc_event.user_id,
dc_event.start_time,
dc_event.end_time,
dc_event.estimated_end_time,
dc_event.event_level,
dc_event.event_type AS event_type,
dc_event.event_subclass,
dc_event.event_cause,
dc_event.description,
dc_event.event_state,
dc_event.event_source,
dc_event.event_nature,
dc_event.remark,
dc_event.create_time,
dc_event.update_time,
dc_event.event_source_tips,
dc_event.in_tunnel,
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,
dept_id,
stake_mark,
direction,
user_id,
start_time,
end_time,
estimated_end_time,
event_level,
event_type,
event_subclass,
event_cause,
description,
event_state,
event_source,
event_nature,
remark,
create_time,
update_time,
event_source_tips,
in_tunnel,
#{id},
#{deptId},
#{stakeMark},
#{direction},
#{userId},
#{startTime},
#{endTime},
#{estimatedEndTime},
#{eventLevel},
#{eventType},
#{eventSubclass},
#{eventCause},
#{description},
#{eventState},
#{eventSource},
#{eventNature},
#{remark},
#{createTime},
#{updateTime},
#{eventSourceTips},
#{inTunnel},
update dc_event
dept_id = #{deptId},
stake_mark = #{stakeMark},
direction = #{direction},
user_id = #{userId},
start_time = #{startTime},
end_time = #{endTime},
estimated_end_time = #{estimatedEndTime},
event_level = #{eventLevel},
event_type = #{eventType},
event_subclass = #{eventSubclass},
event_cause = #{eventCause},
description = #{description},
event_state = #{eventState},
event_source = #{eventSource},
event_nature = #{eventNature},
remark = #{remark},
create_time = #{createTime},
update_time = #{updateTime},
event_source_tips = #{eventSourceTips},
in_tunnel = #{inTunnel},
where id = #{id}
delete from dc_event where id = #{id}
delete from dc_event where id in
#{id}