燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-06-16 73ff23c1359f5688760ea0279c526136414127ac
src/main/java/com/yssh/service/impl/WarningAnalyseServiceImpl.java
@@ -384,16 +384,17 @@
            //String time = ymdh.format(wd.getCreateTime());
            //list.add(new WarningVo(wd.getLocationName(), wd.getSuYuanId(), 0.0, 0.0, wd.getValue(), time));
            int rows = suYuanMapper.isTableExists(wd.getTableName());
            DistanceSuYuan suYuan = suYuanMapper.getSuYuanById(wd.getTableName(), wd.getSuYuanId());
            DistanceSuYuan suYuan = null;
            int rows = suYuanMapper.isTableExists(wd.getTableName());
            DistanceSuYuan suMax = null;
            if (rows > 0) {
                MonitorPointPosition point = commonService.select3dCheckPointByName(wd.getLocationName());
                List<String> ids3d = CalculateUtils.aloneCrosswiseExtend(point, 50);
                suYuan = suYuanMapper.getSuYuan500Max(wd.getTableName(), ids3d);
                suMax = suYuanMapper.getSuYuan500Max(wd.getTableName(), ids3d);
            }
            Report report = Report.calcReport(wd, suYuan);
            Report report = Report.calcReport(wd, suYuan, suMax);
            list.add(report);
        }