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 | 50 +++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 39 insertions(+), 11 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 5a11ffe..03d6951 100644 --- a/src/main/java/com/lf/server/controller/show/OneMapController.java +++ b/src/main/java/com/lf/server/controller/show/OneMapController.java @@ -4,6 +4,8 @@ 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; @@ -32,8 +34,8 @@ OneMapService aMapOfPipelineService; - //============[椤圭洰缁熻 project Statistics]================== + /** * 椤圭洰绫诲埆 * Project category @@ -138,6 +140,19 @@ 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); + } + /** * 椤圭洰宸ョ▼灞曠ず @@ -158,22 +173,35 @@ @SysLog() @ApiOperation(value = "椤圭洰宸ョ▼宸¤") @GetMapping("/countProjectTour") - public ResponseMsg<Object> countProjectTour() { - return success("hello! 鎮ㄥ凡缁忔垚鍔熻闂�-椤圭洰宸ョ▼宸¤"); + 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 type + * 宸ョ▼椤圭洰鐩綍 + * Project Catalog */ - /*@SysLog() - @ApiOperation(value = "椤圭洰宸ョ▼绫诲瀷") - @GetMapping("/countProjectType") - public ResponseMsg<Object> countProjectType() { - List<String> resList = aMapOfPipelineService.countProjectType1(); + @SysLog() + @ApiOperation(value = "宸ョ▼椤圭洰鐩綍") + @GetMapping("/selectProjectType") + public ResponseMsg<Object> selectProjectType() { + List<OneMapEntity> resList = aMapOfPipelineService.selectProjectType1(); return success(resList); - }*/ + } /** * 鏍规嵁琛ㄥ悕鏌ヨ琛ㄥ瓧娈典俊鎭� -- Gitblit v1.9.3