select id, name, operation_longitude, operation_latitude, operation_type, operation_start, operation_end, operation_site from hazardous_operation
select distinct(a.id) id, a.name name, a.operation_level operationLevel, a.enterprise_id enterpriseId, a.operation_content operationContent, a.operation_type operationType, a.operation_start operationStart, a.operation_end operationEnd,a.operation_site operationSite,
e.name
from hazardous_operation as a
left join enterprise_information as e on a.enterprise_id = e.id
insert into hazardous_operation
id,name,operation_level,enterprise_id,operation_content,operation_longitude,operation_latitude,operation_type,operation_start,operation_end,operation_site,#{id},#{name},#{operationLevel},#{enterpriseId},#{operationContent},#{operationLongitude},#{operationLatitude},#{operationType},#{operationStart},#{operationEnd},#{operationSite},
update hazardous_operation
name = #{name},operation_level = #{operationLevel},enterprise_id = #{enterpriseId},operation_content = #{operationContent},operation_longitude = #{operationLongitude},operation_latitude = #{operationLatitude},operation_type = #{operationType},operation_start = #{operationStart},operation_end = #{operationEnd},operation_site = #{operationSite},
where id = #{id}
delete from hazardous_operation where id = #{id}
delete from hazardous_operation where id in
#{id}