From e55b5aaddc111abc8ae61260eb20fddf6b089c07 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 21 三月 2024 14:09:10 +0800
Subject: [PATCH] 修改分类统计功能

---
 src/main/java/com/lf/server/controller/data/DataCountController.java |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/data/DataCountController.java b/src/main/java/com/lf/server/controller/data/DataCountController.java
index 79d940e..0c41db0 100644
--- a/src/main/java/com/lf/server/controller/data/DataCountController.java
+++ b/src/main/java/com/lf/server/controller/data/DataCountController.java
@@ -147,10 +147,11 @@
     @SysLog()
     @ApiOperation(value = "涓嬭浇鎶ュ憡")
     @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "鎶ュ憡ID", dataType = "Integer", paramType = "query", example = "18")
+            @ApiImplicitParam(name = "id", value = "鎶ュ憡ID", dataType = "Integer", paramType = "query", example = "18"),
+            @ApiImplicitParam(name = "code", value = "鐩綍缂栫爜", dataType = "String", paramType = "query", example = "00"),
     })
     @GetMapping(value = "/downloadReport")
-    public void downloadReport(Integer id, HttpServletRequest req, HttpServletResponse res) {
+    public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) {
         try {
             if (null == id || id < 1) {
                 return;
@@ -163,7 +164,7 @@
 
             UserEntity ue = tokenService.getCurrentUser(req);
 
-            reportService.createReport(ue, re, res);
+            reportService.createReport(ue, re, code, res);
         } catch (Exception ex) {
             log.error(ex.getMessage(), ex);
         }
@@ -339,7 +340,7 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "缁熻鏁板瓧绾垮垝鍥鹃潰绉�")
+    @ApiOperation(value = "鎸夐」鐩粺璁℃暟瀛楃嚎鍒掑浘闈㈢Н")
     @GetMapping(value = "/countDlgAreaByPrj")
     public ResponseMsg<Object> countDlgAreaByPrj() {
         try {
@@ -365,7 +366,7 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "缁熻绠$嚎闀垮害")
+    @ApiOperation(value = "鎸夐」鐩粺璁$绾块暱搴�")
     @GetMapping(value = "/countLineLength")
     public ResponseMsg<Object> countLineLength() {
         try {
@@ -391,7 +392,7 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鎸夐」鐩粺璁″湴璐ㄦā鍨嬮潰绉�")
+    @ApiOperation(value = "鎸夐」鐩粺璁′笁缁村湴璐ㄦā鍨嬮潰绉�")
     @GetMapping(value = "/countGeoModelAreaByPrj")
     public ResponseMsg<Object> countGeoModelAreaByPrj() {
         try {
@@ -415,4 +416,24 @@
             return fail(ex, null);
         }
     }
+
+    @SysLog()
+    @ApiOperation(value = "椤圭洰鏁版嵁鍒嗙被缁熻")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "code", value = "椤圭洰缂栫爜", dataType = "String", paramType = "query", example = "0B")
+    })
+    @GetMapping(value = "/countVariousDataByPrj")
+    public ResponseMsg<Object> countVariousDataByPrj(String code) {
+        try {
+            if (StringHelper.isEmpty(code)) {
+                return fail("椤圭洰缂栫爜涓嶈兘涓虹┖");
+            }
+
+            List<CountEntity> list = reportService.countVariousDataByPrj(code);
+
+            return success(list);
+        } catch (Exception ex) {
+            return fail(ex, null);
+        }
+    }
 }

--
Gitblit v1.9.3