燕山石化溯源三维电子沙盘-【后端】-服务
11
13693261870
2024-11-08 2b32f3b7e35272a584ecbbb91b7509ba20f837fa
src/main/resources/mapper/QxshMapper.xml
@@ -66,14 +66,14 @@
    <select id="countMonthForWarn" resultType="java.lang.Integer">
        with rs as (select jcyj, jcbj from alert_config limit 1)
        select count(*)
        select count(id)
        from yssh_gcsj
        where time between #{start} and #{end} and name like 'AI-%'
            and value > (select jcyj from rs) and value &lt;= (select jcbj from rs);
    </select>
    <select id="countMonthForAlarm" resultType="java.lang.Integer">
        select count(*)
        select count(id)
        from yssh_gcsj
        where time between #{start} and #{end} and name like 'AI-%'
            and value > (select jcbj from alert_config limit 1);
@@ -100,12 +100,12 @@
    </select>
    <select id="countFastSuYuan" resultType="java.lang.Integer">
        select count(*) from suyuan_fast
        select count(id) from suyuan_fast
        where su_yuan_id = #{id} and create_time = #{time};
    </select>
    <select id="hasSuYuan" resultType="java.lang.Integer">
        select count(*) from suyuan_46 where su_yuan_id=#{suYuanId} and create_time=#{createTime};
        select count(id) from suyuan_46 where su_yuan_id=#{suYuanId} and create_time=#{createTime};
    </select>
    <select id="select3Hours" resultType="com.yssh.entity.Qxsh">
@@ -139,22 +139,22 @@
    </select>
    <select id="countGcsjByTime" resultType="java.lang.Integer">
        select count(*) from yssh_gcsj where time between #{start} and #{end};
        select count(id) 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 count(id) 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 count(id) 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 count(id) 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 count(id) from suyuan_fast where create_time between #{start} and #{end};
    </select>
</mapper>