insert into device_data devNo, devType, `timeStamp`, expands, CreatorUserId, LastModificationTime, LastModifierUserId, IsDeleted, DeleterUserId, DeletionTime, CreationTime #{devNo}, #{devType}, #{timeStamp}, #{expands}, #{creatorUserId}, #{lastModificationTime}, #{isDeleted}, #{deleterUserId}, #{deletionTime}, current_date insert into event fusionId, event_name, event_type_code, event_desc, occur_time, end_time, stake_number, longitude, latitude, lane, direction, location, event_source_code, event_source, event_status, event_level, section_id, event_type_code2, event_cause, accident_weather, accident_queue, congestion_pile, congestion_reason, control_category, control_reason, control_reason_type, control_station, control_pile, control_strategy, control_type, control_vehicle_type, CreatorUserId, LastModificationTime, LastModifierUserId, IsDeleted, DeleterUserId, DeletionTime, CreationTime, #{fusionId}, #{eventName}, #{eventTypeCode}, #{eventDesc}, #{occurTime}, #{endTime}, #{stakeNumber}, #{longitude}, #{latitude}, #{lane}, #{direction}, #{location}, #{eventSourceCode}, #{eventSource}, #{eventStatus}, #{eventLevel}, #{sectionId}, #{eventTypeCode2}, #{eventCause}, #{accidentWeather}, #{accidentQueue}, #{congestionPile}, #{congestionReason}, #{controlCategory}, #{controlReason}, #{controlReasonType}, #{controlStation}, #{controlPile}, #{controlStrategy}, #{controlType}, #{controlVehicleType}, #{creatorUserId}, #{lastModificationTime}, #{lastModifierUserId}, #{isDeleted}, #{deleterUserId}, #{deletionTime}, now() update device set dev_status = #{deviceState} where dev_no = #{iotDeviceId} update event fusionId = #{fusionId}, event_name = #{eventName}, event_type_code = #{eventTypeCode}, event_desc = #{eventDesc}, occur_time = #{occurTime}, end_time = #{endTime}, stake_number = #{stakeNumber}, longitude = #{longitude}, latitude = #{latitude}, lane = #{lane}, direction = #{direction}, location = #{location}, event_source_code = #{eventSourceCode}, event_source = #{eventSource}, event_status = #{eventStatus}, event_level = #{eventLevel}, section_id = #{sectionId}, event_type_code2 = #{eventTypeCode2}, event_cause = #{eventCause}, accident_weather = #{accidentWeather}, accident_queue = #{accidentQueue}, congestion_pile = #{congestionPile}, congestion_reason = #{congestionReason}, control_category = #{controlCategory}, control_reason = #{controlReason}, control_reason_type = #{controlReasonType}, control_station = #{controlStation}, control_pile = #{controlPile}, control_strategy = #{controlStrategy}, control_type = #{controlType}, control_vehicle_type = #{controlVehicleType}, LastModificationTime = now(), LastModifierUserId = #{lastModifierUserId}, IsDeleted = #{isDeleted}, DeleterUserId = #{deleterUserId}, DeletionTime = #{deletionTime}, where id = #{id}