燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-06 ec3e7326246b5543089b14e53275e2aca8e39f96
src/main/java/com/yssh/service/impl/CommonServiceImpl.java
@@ -1,6 +1,5 @@
package com.yssh.service.impl;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.File;
@@ -10,11 +9,8 @@
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yssh.config.CsvFilePathConfig;
@@ -25,25 +21,24 @@
import com.yssh.utils.CalculateUtils;
import com.yssh.utils.StringUtils;
import javax.annotation.Resource;
@Service
public class CommonServiceImpl implements ICommonService {
   protected final Log logger = LogFactory.getLog(this.getClass());
   protected final Logger logger = LoggerFactory.getLogger(this.getClass());
   private static final String TABLE_SCHEMA = "yssh";
   
   private List<MonitorPointPosition> checkPoints2d = new ArrayList<MonitorPointPosition>();
   private List<MonitorPointPosition> checkPoints3d = new ArrayList<MonitorPointPosition>();
   private List<MonitorPointPosition> checkPoints2d = new ArrayList<>();
   private List<MonitorPointPosition> checkPoints3d = new ArrayList<>();
   
   @Autowired
   @Resource
   private CommonMapper commonMapper;
   
   @Autowired
   @Resource
   protected DatFilePathConfig datFilePathConfig;
   @Autowired
   private CsvFilePathConfig csvFilePathConfig;
   /**
    * 检查表是否存在
    */
@@ -76,8 +71,10 @@
         try {
            z = new Double(Math.round(Integer.parseInt(f2d[2]) * 1.0/10)).intValue();
         } catch (Exception e) {
            System.out.println(e.getStackTrace());
         }
            if (x <= 699 && y <= 699) {
            //if (x <= 699 && y <= 699)
         {
               MonitorPointPosition monitorPointPosition = new MonitorPointPosition();
               monitorPointPosition.setId(x + "_" + y + "_" + z);
                monitorPointPosition.setName("AI-" + (count2d < 10 ? "0" + count2d : count2d + ""));
@@ -105,8 +102,10 @@
         try {
            z = new Double(Math.round(Integer.parseInt(f3d[2]) * 1.0/10)).intValue();
         } catch (Exception e) {
            System.out.println(e.getStackTrace());
         }
            if (x <= 699 && y <= 699) {
         if (count3d > 46) break;
         { //if (x <= 699 && y <= 699) {
                MonitorPointPosition monitorPointPosition = new MonitorPointPosition();
                monitorPointPosition.setId(x + "_" + y + "_" + z);
                 monitorPointPosition.setName("AI-" + (count3d < 10 ? "0" + count3d : count3d + ""));