燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-09-11 d83ba37ebb8fbbc5d212e37cd2828c72fddddf6d
src/main/java/com/yssh/service/SuYuanService.java
@@ -103,7 +103,7 @@
   }
   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;
@@ -205,7 +205,7 @@
   }
   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;
@@ -306,16 +306,24 @@
   }
   public String selectAddrByXY(double x, double y) {
      // 1米=0.0000089932
      List<Location> locations = locationMapper.selectByXY(x, y);
      if (null != locations && locations.size() > 0) {
         return locations.get(0).getName();
      }
      locations = locService.selectVocAddrs(x, y);
      /*locations = locService.selectVocAddrs(x, y);
      if (null != locations && locations.size() > 0) {
         return locations.get(0).getName();
      }
      }*/
      return null;
   }
   public String selectSuYuanIdByName(String name) {
      MonitorPointPosition mpp = commonService.select3dCheckPointByName(name);
      if (null == mpp) return null;
      return mpp.getId().substring(0, mpp.getId().lastIndexOf("_") + 1) + "0";
   }
}