From 56c25bcb0dc03aae78aba23f32ebbf548b866332 Mon Sep 17 00:00:00 2001
From: xing <xingjs@qq.com>
Date: 星期三, 22 二月 2023 14:11:09 +0800
Subject: [PATCH] 20230221@xingjs@提交官网一张图相关内容接口

---
 src/main/java/com/lf/server/controller/show/OneMapController.java |  140 ++++++++++++++++++++++++++++++++++------------
 1 files changed, 103 insertions(+), 37 deletions(-)

diff --git a/src/main/java/com/lf/server/controller/show/OneMapController.java b/src/main/java/com/lf/server/controller/show/OneMapController.java
index 1137f68..03d6951 100644
--- a/src/main/java/com/lf/server/controller/show/OneMapController.java
+++ b/src/main/java/com/lf/server/controller/show/OneMapController.java
@@ -1,14 +1,18 @@
 package com.lf.server.controller.show;
 
 
+import com.lf.server.annotation.SysLog;
 import com.lf.server.controller.all.BaseController;
 import com.lf.server.entity.all.ResponseMsg;
+import com.lf.server.entity.bs.MpipelineEntity;
+import com.lf.server.entity.show.OneMapEntity;
 import com.lf.server.service.show.OneMapService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 import java.util.List;
@@ -21,20 +25,13 @@
  * @date 2023/02/13
  */
 
-@Api(tags = "绠$綉涓�寮犲浘")
+@Api(tags = "缁煎悎灞曠ず\\绠$綉涓�寮犲浘")
 @RestController
-@RequestMapping("/one_Map")
+@RequestMapping("/oneMap")
 public class OneMapController extends BaseController {
 
     @Autowired
     OneMapService aMapOfPipelineService;
-
-    //@SysLog()
-    @GetMapping("/hello")
-    public ResponseMsg<Object> hello() {
-        System.out.println("log = " + log);
-        return success("hello! 鎮ㄥ凡缁忔垚鍔熻闂�", 1);
-    }
 
 
     //============[椤圭洰缁熻 project Statistics]==================
@@ -43,10 +40,11 @@
      * 椤圭洰绫诲埆
      * Project category
      */
+    @SysLog()
     @ApiOperation(value = "椤圭洰绫诲埆")
     @GetMapping("/countProjectCategory")
-    public ResponseMsg<Object> projectCategoryConut() {
-        List<String> resList = aMapOfPipelineService.projectCategoryConut();
+    public ResponseMsg<Object> projectCategoryCount() {
+        List<String> resList = aMapOfPipelineService.projectCategoryCount();
         return success(resList);
     }
 
@@ -54,10 +52,11 @@
      * 椤圭洰浣嶇疆鍒嗗竷鎺ュ彛
      * Project location
      */
+    @SysLog()
     @ApiOperation(value = "椤圭洰浣嶇疆鍒嗗竷鎺ュ彛")
     @GetMapping("/countProjectLocation")
-    public ResponseMsg<Object> projectLocationConut() {
-        List<String> resList = aMapOfPipelineService.projectLocationConut();
+    public ResponseMsg<Object> projectLocationCount() {
+        List<String> resList = aMapOfPipelineService.projectLocationCount();
         return success(resList);
     }
 
@@ -66,10 +65,11 @@
      * 鍥藉缁村害-鏁伴噺缁熻
      * Country dimension
      */
+    @SysLog()
     @ApiOperation(value = "鍥藉缁村害-鏁伴噺缁熻")
-    @GetMapping("/conutCountryDimension")
-    public ResponseMsg<Object> countryDimensionConut() {
-        List<String> resList = aMapOfPipelineService.countryDimensionConut();
+    @GetMapping("/countCountryDimension")
+    public ResponseMsg<Object> countryDimensionCount() {
+        List<String> resList = aMapOfPipelineService.countryDimensionCount();
         return success(resList);
     }
 
@@ -77,10 +77,11 @@
      * 鐪佺淮搴�-鏁伴噺缁熻
      * Province dimension - quantity
      */
+    @SysLog()
     @ApiOperation(value = "鐪佺淮搴�-鏁伴噺缁熻")
-    @GetMapping("/conutProvinceDimension")
-    public ResponseMsg<Object> provinceDimensionConut() {
-        List<String> resList = aMapOfPipelineService.provinceDimensionConut();
+    @GetMapping("/countProvinceDimension")
+    public ResponseMsg<Object> provinceDimensionCount() {
+        List<String> resList = aMapOfPipelineService.provinceDimensionCount();
         return success(resList);
     }
 
@@ -92,10 +93,11 @@
      * 鏁版嵁瀛樺偍
      * data storage
      */
+    @SysLog()
     @ApiOperation(value = "鏁版嵁瀛樺偍缁熻")
     @GetMapping("/countDataStorage")
-    public ResponseMsg<Object> dataStorageConut() {
-        List<String> resList = aMapOfPipelineService.dataStorageConut();
+    public ResponseMsg<Object> dataStorageCount() {
+        List<String> resList = aMapOfPipelineService.dataStorageCount();
         return success(resList);
     }
 
@@ -104,10 +106,11 @@
      * 鏂囦欢鏍煎紡缁村害-鏂囦欢涓暟
      * File format dimension
      */
+    @SysLog()
     @ApiOperation(value = "鏂囦欢鏍煎紡缁村害-鏂囦欢涓暟")
-    @GetMapping("/conutFileFormat")
-    public ResponseMsg<Object> fileFormatConut() {
-        List<String> resList = aMapOfPipelineService.fileFormatConut();
+    @GetMapping("/countFileFormat")
+    public ResponseMsg<Object> fileFormatCount() {
+        List<String> resList = aMapOfPipelineService.fileFormatCount();
         return success(resList);
     }
 
@@ -116,10 +119,11 @@
      * 鏁版嵁鐢宠
      * Data application
      */
+    @SysLog()
     @ApiOperation(value = "鏁版嵁鐢宠")
-    @GetMapping("/conutDataApply")
-    public ResponseMsg<Object> dataApplyConut() {
-        List<String> resList = aMapOfPipelineService.dataApplyConut();
+    @GetMapping("/countDataApply")
+    public ResponseMsg<Object> dataApplyCount() {
+        List<String> resList = aMapOfPipelineService.dataApplyCount();
         return success(resList);
     }
 
@@ -128,23 +132,85 @@
      * 璁块棶娆℃暟
      * Number of visits
      */
+    @SysLog()
     @ApiOperation(value = "璁块棶娆℃暟")
-    @GetMapping("/conutDataVisit")
-    public ResponseMsg<Object> dataVisitConut() {
-        List<String> resList = aMapOfPipelineService.dataVisitConut();
+    @GetMapping("/countDataVisit")
+    public ResponseMsg<Object> dataVisitCount() {
+        List<String> resList = aMapOfPipelineService.dataVisitCount();
+        return success(resList);
+    }
+
+    /**
+     * 涓嬭浇閲忕粺璁�
+     * Download statistics
+     * <p>type绫诲瀷锛�1-Shp鏂囦欢锛�2-涓撻鍥撅紝3-婧愭暟鎹紝4-涓氬姟鏁版嵁锛�5-绠¢亾鍒嗘瀽锛�6-缁熻鎶ュ憡<p/>
+     */
+    @SysLog()
+    @ApiOperation(value = "涓嬭浇閲忕粺璁�")
+    @GetMapping("/countDownloads")
+    public ResponseMsg<Object> countDownloads() {
+        List<String> resList = aMapOfPipelineService.countDownloads();
         return success(resList);
     }
 
 
     /**
-     * 鏁版嵁缁熻
-     * 璁块棶娆℃暟
-     * Number of visits
+     * 椤圭洰宸ョ▼灞曠ず
+     * Project engineering display
      */
-    @ApiOperation(value = "璁块棶娆℃暟")
-    @GetMapping("data_visit1")
-    public ResponseMsg<Object> dataVisitConut1() {
-        List<String> resList = aMapOfPipelineService.dataVisitConut();
+    @SysLog()
+    @ApiOperation(value = "椤圭洰宸ョ▼灞曠ず")
+    @GetMapping("/countProjectDisplay")
+    public ResponseMsg<Object> countProjectDisplay() {
+        List<String> resList = aMapOfPipelineService.countProjectDisplay();
+        return success(resList);
+    }
+
+    /**
+     * 椤圭洰宸ョ▼宸¤
+     * Project inspection tour
+     */
+    @SysLog()
+    @ApiOperation(value = "椤圭洰宸ョ▼宸¤")
+    @GetMapping("/countProjectTour")
+    public ResponseMsg<Object> countProjectTour(MpipelineEntity mpipelineEntity) {
+        List<String> resList = aMapOfPipelineService.countProjectTour(mpipelineEntity);
+        return success("hello! 鎮ㄥ凡缁忔垚鍔熻闂�-椤圭洰宸ョ▼宸¤", resList);
+    }
+
+    /**
+     * 椤圭洰宸ョ▼宸¤鍒楄〃
+     * Project inspection tour
+     */
+    @SysLog()
+    @ApiOperation(value = "椤圭洰宸ョ▼宸¤鍒楄〃")
+    @GetMapping("/selectProjectTour")
+    public ResponseMsg<Object> selectProjectTour() {
+        List<String> resList = aMapOfPipelineService.selectProjectTour();
+        return success(resList);
+    }
+
+
+    /**
+     * 宸ョ▼椤圭洰鐩綍
+     * Project Catalog
+     */
+    @SysLog()
+    @ApiOperation(value = "宸ョ▼椤圭洰鐩綍")
+    @GetMapping("/selectProjectType")
+    public ResponseMsg<Object> selectProjectType() {
+        List<OneMapEntity> resList = aMapOfPipelineService.selectProjectType1();
+        return success(resList);
+    }
+
+    /**
+     * 鏍规嵁琛ㄥ悕鏌ヨ琛ㄥ瓧娈典俊鎭�
+     * Query table field information according to table name
+     */
+    @ApiOperation(value = "鏍规嵁琛ㄥ悕鏌ヨ琛ㄥ瓧娈典俊鎭�")
+    @GetMapping("/selectTableInfo")
+    public ResponseMsg<Object> selectTableInfo(@RequestParam("tableName") String tableName) {
+        List<String> resList = aMapOfPipelineService.queryTableInfo(tableName);
         return success(resList);
     }
 

--
Gitblit v1.9.3