| | |
| | | @Resource |
| | | private LocationService locService; |
| | | |
| | | @Resource |
| | | private AlertConfigMapper alertConfigMapper; |
| | | |
| | | private static HashMap<String, String> sites = new HashMap<>(); |
| | | |
| | | public double getJcyj() { |
| | | return alertConfigMapper.getAll().get(0).getJcyj(); |
| | | } |
| | | |
| | | //@Transactional |
| | | @Async("threadPoolTaskExecutor") |
| | | public void insertSuYuanDatasAsync(List<SuYuan> lists, String time) throws Exception { |
| | |
| | | } |
| | | |
| | | public Map<String, Object> selectSuYuan100(String name, Date date) { |
| | | Map<String, Object> result = new HashMap<String, Object>(); |
| | | Map<String, Object> result = new HashMap<>(); |
| | | MonitorPointPosition checkPoint = commonService.select3dCheckPointByName(name); |
| | | if (StringUtils.isNull(checkPoint)) { |
| | | return null; |
| | |
| | | } |
| | | |
| | | public Map<String, Object> selectSuYuan500(String name, Date date) { |
| | | Map<String, Object> result = new HashMap<String, Object>(); |
| | | Map<String, Object> result = new HashMap<>(); |
| | | MonitorPointPosition checkPoint = commonService.select3dCheckPointByName(name); |
| | | if (StringUtils.isNull(checkPoint)) { |
| | | return null; |
| | |
| | | |
| | | return null; |
| | | } |
| | | |
| | | public String selectSuYuanIdByName(String name) { |
| | | if (sites.containsKey(name)) { |
| | | return sites.get(name); |
| | | } |
| | | |
| | | MonitorPointPosition mpp = commonService.select3dCheckPointByName(name); |
| | | if (null == mpp) { |
| | | return null; |
| | | } |
| | | |
| | | String suYuanId = mpp.getId().substring(0, mpp.getId().lastIndexOf("_") + 1) + "0"; |
| | | if (!sites.containsKey(name)) { |
| | | sites.put(name, suYuanId); |
| | | } |
| | | |
| | | return suYuanId; |
| | | } |
| | | } |