From 1e8e3473cb124f9e51dfc1ca35e5cb13b1668bdc Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期六, 10 五月 2025 10:46:19 +0800
Subject: [PATCH] 1.重命名类名称和文件名;

---
 SourceCode/Bond/Servo/AlarmManager.h |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/SourceCode/Bond/Servo/AlarmManager.h b/SourceCode/Bond/Servo/AlarmManager.h
index c046c93..0540f70 100644
--- a/SourceCode/Bond/Servo/AlarmManager.h
+++ b/SourceCode/Bond/Servo/AlarmManager.h
@@ -214,6 +214,26 @@
     */
     int getLastInsertId();
 
+    /**
+    * 通过事件id解除报警(更新结束时间)
+    * @param alarmEventId 事件ID
+    * @param endTime 结束时间
+    * @return 成功返回true,失败返回false
+    */
+    bool clearAlarmByEventId(int alarmEventId, const std::string& endTime);
+
+    /**
+    * 通过多个属性查找并解除报警(更新结束时间)
+    * @param nId 报警ID
+    * @param nSeverityLevel 报警等级
+    * @param nDeviceId 设备ID
+    * @param nUnitId 单元ID
+    * @param strDescription 描述
+    * @param endTime 结束时间
+    * @return 成功返回true,失败返回false
+    */
+    bool clearAlarmByAttributes(int nId, int nDeviceId, int nUnitId, const std::string& endTime);
+
 	/**
 	 * 读取报警文件
 	 * @param filename 文件名

--
Gitblit v1.9.3