燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-09 8cf0f53240cce2c1843a80600ca97f6be88cd3c3
src/main/java/com/yssh/service/impl/CommonServiceImpl.java
@@ -56,6 +56,7 @@
        }
        return false;
   }
   @Override
   public void readDatData() throws Exception {
        File file2d = new File(datFilePathConfig.getFilePath2d());
@@ -124,6 +125,7 @@
   public List<MonitorPointPosition> getCheckPoints2d() {
      return checkPoints2d;
   }
   public List<MonitorPointPosition> getCheckPoints3d() {
      return checkPoints3d;
   }
@@ -137,6 +139,7 @@
      }
      return null;
   }
   @Override
   public MonitorPointPosition select3dCheckPointByName(String name) {
      for (MonitorPointPosition monitorPointPosition : checkPoints3d) {
@@ -146,6 +149,7 @@
      }
      return null;
   }
   @Override
   public MonitorPointPosition select2dCheckPointById(String id) {
      for (MonitorPointPosition monitorPointPosition : checkPoints2d) {
@@ -155,10 +159,13 @@
      }
      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;
         }
      }