修改预警和报警信息入库的层级、id获取规则、判断依据等
| | |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.set(Calendar.MONTH, 5); |
| | | calendar.set(Calendar.DAY_OF_MONTH, 8); |
| | | calendar.set(Calendar.HOUR_OF_DAY, 13); |
| | | calendar.set(Calendar.HOUR_OF_DAY, 16); |
| | | calendar.set(Calendar.MINUTE, 0); |
| | | calendar.set(Calendar.SECOND, 0); |
| | | calendar.set(Calendar.MILLISECOND, 0); |
| | | |
| | | warningAnalyseService.warningOperationStorage(calendar.getTime()); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | private Calendar getCalendar(int start) { |
| | | public Calendar getCalendar(int start) { |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.setTime(new Date()); |
| | | calendar.add(Calendar.HOUR, start); |
| | | calendar.set(Calendar.MINUTE, 0); |
| | | calendar.set(Calendar.SECOND, 0); |
| | | calendar.set(Calendar.MILLISECOND, 0); |
| | | |
| | | // 测试 -> 2023-04-23 19:00 |
| | | //calendar.set(Calendar.MONTH, 3); |
| | |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | | public void readDatData() throws Exception { |
| | | File file2d = new File(datFilePathConfig.getFilePath2d()); |
| | |
| | | public List<MonitorPointPosition> getCheckPoints2d() { |
| | | return checkPoints2d; |
| | | } |
| | | |
| | | public List<MonitorPointPosition> getCheckPoints3d() { |
| | | return checkPoints3d; |
| | | } |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public MonitorPointPosition select3dCheckPointByName(String name) { |
| | | for (MonitorPointPosition monitorPointPosition : checkPoints3d) { |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public MonitorPointPosition select2dCheckPointById(String id) { |
| | | for (MonitorPointPosition monitorPointPosition : checkPoints2d) { |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public MonitorPointPosition select3dCheckPointById(String id) { |
| | | for (MonitorPointPosition monitorPointPosition : checkPoints3d) { |
| | | if (monitorPointPosition.getId().equals(id)) { |
| | | //if (monitorPointPosition.getId().equals(id)) { |
| | | String subId = id.substring(0, id.lastIndexOf("_") + 1); |
| | | if (monitorPointPosition.getId().contains(subId)) { |
| | | return monitorPointPosition; |
| | | } |
| | | } |
| | |
| | | <foreach collection="ids" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | AND c > (SELECT jcyj FROM alert_config LIMIT 1) |
| | | and c > (select jcyj from alert_config limit 1) and c <= (select jcbj from alert_config limit 1) |
| | | </select> |
| | | |
| | | <select id="getMonitorData" resultMap="SuYuanMonitorDataResult"> |