Browse Source

火灾年平均值

yq 4 years ago
parent
commit
36fa240b12

+ 1 - 1
mhfire-service/src/main/java/com/bizmatics/mhfire/service/impl/FireStatisticsServiceImpl.java

@@ -60,7 +60,7 @@ public class FireStatisticsServiceImpl implements FireStatisticsService {
             Integer monthCount = fireStatisticsMapper.selectCountByRangeDate(startMax, endMax, address, fireType,i+1);
             monthList.add(Arith.div(monthCount, distanceOfTwoDate));
             Integer yearCount = fireStatisticsMapper.selectCountByRangeDate(null, null,address, fireType,i+1);
-            yearList.add(Arith.div(yearCount, distanceOfTwoDate));
+            yearList.add(Arith.div(yearCount, distanceOfTwoDateYear));
         }
         list.add(thisYearList);
         list.add(monthList);