This commit is contained in:
2026-02-16 14:46:27 +08:00
parent 8806473080
commit 49ed5f218a
3 changed files with 47 additions and 0 deletions

View File

@ -55,4 +55,21 @@ public class EmsAlarmRecordsController extends BaseController
}
}
/**
* 关闭告警
*/
@PostMapping("/closeAlarm")
public AjaxResult closeAlarm(@RequestBody EmsAlarmRecords emsAlarmRecords)
{
Long id = emsAlarmRecords.getId();
if (id == null) {
return error("告警id不能为空");
}
String result = iEmsAlarmRecordsService.closeAlarm(id, getUserId());
if ("success".equals(result) || "告警已关闭".equals(result)) {
return AjaxResult.success("操作成功");
}
return error(result);
}
}