燕山石化溯源三维电子沙盘-【后端】-服务
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">
@@ -136,4 +137,24 @@
        where time = #{time} and name = #{name}
        limit 1;
    </select>
    <select id="countGcsjByTime" resultType="java.lang.Integer">
        select count(*) from yssh_gcsj where time between #{start} and #{end};
    </select>
    <select id="countQxshByTime" resultType="java.lang.Integer">
        select count(*) from yssh_qxsh where time between #{start} and #{end};
    </select>
    <select id="countSuYuan46ByTime" resultType="java.lang.Integer">
        select count(*) from suyuan_46 where create_time between #{start} and #{end};
    </select>
    <select id="countSuYuan70ByTime" resultType="java.lang.Integer">
        select count(*) from suyuan_70_70 where create_time between #{start} and #{end};
    </select>
    <select id="countSuYuanFastByTime" resultType="java.lang.Integer">
        select count(*) from suyuan_fast where create_time between #{start} and #{end};
    </select>
</mapper>