From 7587c74159ce4026baa811f25f306510569ee54a Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期四, 20 三月 2025 17:32:02 +0800 Subject: [PATCH] 数据分析 预警,建议 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictAlarmMessageServiceImpl.java | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictAlarmMessageServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictAlarmMessageServiceImpl.java index 33790c6..057965d 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictAlarmMessageServiceImpl.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/impl/MmPredictAlarmMessageServiceImpl.java @@ -14,6 +14,7 @@ import java.util.Date; import java.util.List; +import java.util.Map; import java.util.UUID; /** @@ -46,6 +47,14 @@ } @Override + public List<MmPredictAlarmMessageEntity> getList(List<String> alarmObjList, Date predictTime) { + QueryWrapper<MmPredictAlarmMessageEntity> queryWrapper = new QueryWrapper<>(); + queryWrapper.in("alarm_obj", alarmObjList); + queryWrapper.eq("alarm_time", predictTime); + return baseDao.selectList(queryWrapper); + } + + @Override public List<MmPredictAlarmMessageEntity> getList(String alarmObj, Date alarmTime) { QueryWrapper<MmPredictAlarmMessageEntity> queryWrapper = new QueryWrapper<>(); queryWrapper.eq("alarm_obj", alarmObj) @@ -71,4 +80,9 @@ public void delete(String id) { baseDao.deleteById(id); } + + @Override + public void cleanAlarmMessage(Map<String, Date> tMap) { + baseDao.cleanAlarmMessage(tMap); + } } \ No newline at end of file -- Gitblit v1.9.3