| | |
| | | limit 10; |
| | | </select> |
| | | |
| | | <select id="countMonthForWarn" resultType="java.lang.Integer"> |
| | | select count(*) |
| | | from yssh_qxsh |
| | | where time between #{start} and #{end} and name like 'AI-%' |
| | | and value > (select jcyj from alert_config limit 1) and value <= (select jcbj from alert_config limit 1); |
| | | </select> |
| | | |
| | | <select id="countMonthForAlarm" resultType="java.lang.Integer"> |
| | | select count(*) |
| | | from yssh_qxsh |
| | | where time between #{start} and #{end} and name like 'AI-%' and value > (select jcbj from alert_config limit 1); |
| | | </select> |
| | | |
| | | <select id="count7DayForWarn" resultType="java.util.Map"> |
| | | with rs as ( |
| | | select left(time, 8) "createTime" |