select d.id, d.alarm_value, d.code, d.description, d.alarm_time from t_elecdashboard_alarm d insert into t_elecdashboard_alarm id, alarm_value, code, description, #{id}, #{alarmValue}, #{code}, #{description}, update t_elecdashboard_alarm alarm_value = #{alarmValue}, code = #{code}, description = #{description}, where id = #{id} update t_elecdashboard_alarm set del_flag = 2 where id = #{id} update t_elecdashboard_alarm set del_flag = 2 where id in #{id}