‘liusuyi’
2023-07-07 5f5cf5b1b4683a56fd0c85a0d89d14a4c0268cde
ard-work/src/main/resources/mapper/alarm/ArdAlarmCameraMapper.xml
@@ -161,4 +161,10 @@
        WHERE
            T.rn = 1
    </select>
    <select id="selectCountByAlarmTime" resultType="Integer">
        SELECT COUNT(DISTINCT aac.camera_name)
        FROM ard_alarm_camera aac
        WHERE aac.alarm_time >= CURRENT_TIMESTAMP - INTERVAL '%${refreshTime}%' MINUTE
          and aac.view_time is null
    </select>
</mapper>