| | |
| | | @Resource |
| | | private LocationService locService; |
| | | |
| | | private static HashMap<String, String> sites = new HashMap<>(); |
| | | |
| | | //@Transactional |
| | | @Async("threadPoolTaskExecutor") |
| | | public void insertSuYuanDatasAsync(List<SuYuan> lists, String time) throws Exception { |
| | |
| | | } |
| | | |
| | | public String selectSuYuanIdByName(String name) { |
| | | MonitorPointPosition mpp = commonService.select3dCheckPointByName(name); |
| | | if (null == mpp) return null; |
| | | if (sites.containsKey(name)) { |
| | | return sites.get(name); |
| | | } |
| | | |
| | | return mpp.getId().substring(0, mpp.getId().lastIndexOf("_") + 1) + "0"; |
| | | 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; |
| | | } |
| | | } |