| | |
| | | |
| | | <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 <= (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); |
| | |
| | | </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"> |
| | |
| | | </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> |