select log_id, ip_address, port_no, protocol, channel_id, channel_name, event_type, device_id, device_uuid, scene_id, rule_id, tagset_id, photo, reading_type, reading_result, status_result, pilot_lampState, eight_position_selector_knob_tate, air_switch_circuit_breaker_state, relay_protection_controller_state, silica_gel_breather_state, characters_state, circuit_breaker_state, knife_switch_state, open_set_type_state, del_flag, create_by, create_time, update_by, update_time, remark from dial_indicator_log
insert into dial_indicator_log
ip_address,
port_no,
protocol,
channel_id,
channel_name,
event_type,
device_id,
device_uuid,
scene_id,
rule_id,
tagset_id,
photo,
reading_type,
reading_result,
status_result,
pilot_lampState,
eight_position_selector_knob_tate,
air_switch_circuit_breaker_state,
relay_protection_controller_state,
silica_gel_breather_state,
characters_state,
circuit_breaker_state,
knife_switch_state,
open_set_type_state,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark,
#{ipAddress},
#{portNo},
#{protocol},
#{channelId},
#{channelName},
#{eventType},
#{deviceId},
#{deviceUuid},
#{sceneId},
#{ruleId},
#{tagsetId},
#{photo},
#{readingType},
#{readingResult},
#{statusResult},
#{pilotLampstate},
#{eightPositionSelectorKnobTate},
#{airSwitchCircuitBreakerState},
#{relayProtectionControllerState},
#{silicaGelBreatherState},
#{charactersState},
#{circuitBreakerState},
#{knifeSwitchState},
#{openSetTypeState},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update dial_indicator_log
ip_address = #{ipAddress},
port_no = #{portNo},
protocol = #{protocol},
channel_id = #{channelId},
channel_name = #{channelName},
event_type = #{eventType},
device_id = #{deviceId},
device_uuid = #{deviceUuid},
scene_id = #{sceneId},
rule_id = #{ruleId},
tagset_id = #{tagsetId},
photo = #{photo},
reading_type = #{readingType},
reading_result = #{readingResult},
status_result = #{statusResult},
pilot_lampState = #{pilotLampstate},
eight_position_selector_knob_tate = #{eightPositionSelectorKnobTate},
air_switch_circuit_breaker_state = #{airSwitchCircuitBreakerState},
relay_protection_controller_state = #{relayProtectionControllerState},
silica_gel_breather_state = #{silicaGelBreatherState},
characters_state = #{charactersState},
circuit_breaker_state = #{circuitBreakerState},
knife_switch_state = #{knifeSwitchState},
open_set_type_state = #{openSetTypeState},
del_flag = #{delFlag},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where log_id = #{logId}
delete from dial_indicator_log where log_id = #{logId}
delete from dial_indicator_log where log_id in
#{logId}