‘liusuyi’
2023-06-28 d7e18fe5f9962b2fc6d8fd7da7692a9aabe50bdf
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