liusuyi
2023-06-29 3daa378637a5ceeb4965b554f528a7a36e3d5c2a
ard-work/src/main/resources/mapper/alarm/ArdAlarmTubeMapper.xml
@@ -182,7 +182,7 @@
             ) T
        WHERE T.rn = 1
    </select>
    <select id="selectCountByStartTime" resultType="Integer">
    <select id="selectCountByAlarmTime" resultType="Integer">
        SELECT COUNT(DISTINCT aat.tube_id)
        FROM ard_alarm_tube aat
        WHERE aat.alarm_time >= CURRENT_TIMESTAMP - INTERVAL '%${refreshTime}%' MINUTE