| | |
| | | package com.yssh.service.impl; |
| | | |
| | | |
| | | import java.io.BufferedInputStream; |
| | | import java.io.BufferedReader; |
| | | import java.io.File; |
| | |
| | | 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; |
| | |
| | | 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; |
| | | |
| | | |
| | | /** |
| | | * 检查表是否存在 |
| | | */ |
| | |
| | | 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 + "")); |
| | |
| | | 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 + "")); |