src/main/java/com/yssh/service/impl/WarningAnalyseServiceImpl.java
@@ -385,6 +385,7 @@ //list.add(new WarningVo(wd.getLocationName(), wd.getSuYuanId(), 0.0, 0.0, wd.getValue(), time)); DistanceSuYuan suYuan = suYuanMapper.getSuYuanById(wd.getTableName(), wd.getSuYuanId()); Double lastVal = warningDetailMapper.getLastYearVal(wd.getId()); int rows = suYuanMapper.isTableExists(wd.getTableName()); DistanceSuYuan suMax = null; @@ -397,6 +398,8 @@ } Report report = Report.calcReport(wd, suYuan, suMax); report.setLastVal(lastVal); list.add(report); }