| | |
| | | |
| | | try { |
| | | // 计算预警/报警,并且进行入库操作 |
| | | Thread.sleep(60000); |
| | | Thread.sleep(10000); // 60000 |
| | | } catch (InterruptedException e) { |
| | | logger.error("睡眠一分钟后执行预警/报警计算,并且进行入库操作出现异常,异常原因是:", e); |
| | | e.printStackTrace(); |
| | |
| | | csv: |
| | | cron: '0 1 * * * ? ' |
| | | voc: '0 21 10 * * ? ' |
| | | voc: '0 31 12 * * ? ' |
| | |
| | | select a.x, a.y, format(a.val, 2) "val", b.addr |
| | | from voc_vals a inner join voc_addr b |
| | | on a.x = b.x and a.y = b.y |
| | | where date_format(a.create_time, '%Y%m%d%H') = ${time} |
| | | and a.val > (select jcyj from alert_config); |
| | | where date_format(a.create_time, '%Y%m%d%H') = ${time} and a.val > 0.5; |
| | | </select> |
| | | |
| | | <select id="countByTime" resultType="java.lang.Integer"> |