From 418a8806dba90a2463f194da759ed6338018d7d2 Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期一, 28 八月 2023 16:02:28 +0800 Subject: [PATCH] 增加实时报警聚合接口all --- ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml b/ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml index b2b2643..547d0cc 100644 --- a/ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml +++ b/ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml @@ -2,7 +2,7 @@ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.ruoyi.alarm.tubeAlarm.mapper.ArdAlarmTubeMapper"> +<mapper namespace="com.ruoyi.alarm.tube.mapper.ArdAlarmTubeMapper"> <resultMap type="ArdAlarmTube" id="ArdAlarmTubeResult"> <result property="id" column="id"/> @@ -186,6 +186,7 @@ SELECT COUNT(DISTINCT aat.tube_id) FROM ard_alarm_tube aat WHERE aat.alarm_time >= CURRENT_TIMESTAMP - INTERVAL '%${refreshTime}%' MINUTE + and aat.view_time is null </select> <update id="updateViewTimeByTubeId" parameterType="String"> update ard_alarm_tube @@ -194,4 +195,5 @@ and alarm_time <= #{alarmTime} and view_time is null </update> + </mapper> \ No newline at end of file -- Gitblit v1.9.3