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 <= (select jcbj from alert_config limit 1); and value > (select jcyj from rs) and value <= (select jcbj from rs); </select> <select id="countMonthForAlarm" resultType="java.lang.Integer">