From f6e52bce9475f2602e963b6d24c1732aaaef9783 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期五, 15 三月 2024 14:31:46 +0800
Subject: [PATCH] 修改统计方法、数据的精度

---
 src/main/java/com/lf/server/service/sys/ReportService.java |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/lf/server/service/sys/ReportService.java b/src/main/java/com/lf/server/service/sys/ReportService.java
index 093c9a7..0e6c212 100644
--- a/src/main/java/com/lf/server/service/sys/ReportService.java
+++ b/src/main/java/com/lf/server/service/sys/ReportService.java
@@ -215,6 +215,36 @@
         return reportMapper.countWaterDamageByPrj();
     }
 
+    @Override
+    public List<CountEntity> countDlgAreaByPrj() {
+        return reportMapper.countDlgAreaByPrj();
+    }
+
+    @Override
+    public List<CountEntity> countDomAreaByPrj() {
+        return reportMapper.countDomAreaByPrj();
+    }
+
+    @Override
+    public List<CountEntity> countLineLength() {
+        return reportMapper.countLineLength();
+    }
+
+    @Override
+    public List<CountEntity> countExplorationPointByPrj() {
+        return reportMapper.countExplorationPointByPrj();
+    }
+
+    @Override
+    public List<CountEntity> countGeoModelAreaByPrj() {
+        return reportMapper.countGeoModelAreaByPrj();
+    }
+
+    @Override
+    public List<CountEntity> countGeologicHazardByPrj() {
+        return reportMapper.countGeologicHazardByPrj();
+    }
+
     /**
      * 缁熻閽诲瓟鐐归潰绉�
      */
@@ -385,7 +415,7 @@
             ce.setNo(rows);
             ce.setM1("鎬昏");
             ce.setCount(allCount);
-            if (StringUtils.isEmpty(ce.getM2())) {
+            if (StringUtils.isEmpty(list.get(0).getM2())) {
                 ce.setM2(FileHelper.getSizes(allSize));
             }
             ce.setM3(FileHelper.getSquareMeter(allArea));

--
Gitblit v1.9.3