select obj_id, busbar_code, alarm_alias, alarm_content, alarm_type, alarm_value, judg_method, is_flag, created_by, created_time, updated_by, updated_time from base_alarm_info
insert into base_alarm_info
obj_id,
busbar_code,
alarm_alias,
alarm_content,
alarm_type,
alarm_value,
judg_method,
is_flag,
created_by,
created_time,
updated_by,
updated_time,
#{objId},
#{busbarCode},
#{alarmAlias},
#{alarmContent},
#{alarmType},
#{alarmValue},
#{judgMethod},
#{isFlag},
#{createdBy},
#{createdTime},
#{updatedBy},
#{updatedTime},
update base_alarm_info
busbar_code = #{busbarCode},
alarm_alias = #{alarmAlias},
alarm_content = #{alarmContent},
alarm_type = #{alarmType},
alarm_value = #{alarmValue},
judg_method = #{judgMethod},
is_flag = #{isFlag},
created_by = #{createdBy},
created_time = #{createdTime},
updated_by = #{updatedBy},
updated_time = #{updatedTime},
where obj_id = #{objId}
delete from base_alarm_info where obj_id = #{objId}
delete from base_alarm_info where obj_id in
#{objId}