燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-07-27 093a6b0549f5f1ed921d7bc4cfb5d43619c148ae
src/main/resources/mapper/QxshMapper.xml
@@ -65,10 +65,11 @@
    </select>
    <select id="countMonthForWarn" resultType="java.lang.Integer">
        with rs as (select jcyj, jcbj from alert_config limit 1)
        select count(*)
        from yssh_gcsj
        where time between #{start} and #{end} and name like 'AI-%'
            and value > (select jcyj from alert_config limit 1) and value &lt;= (select jcbj from alert_config limit 1);
            and value > (select jcyj from rs) and value &lt;= (select jcbj from rs);
    </select>
    <select id="countMonthForAlarm" resultType="java.lang.Integer">