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 | 64 ++++++++++++++++++++++++++------ 1 files changed, 52 insertions(+), 12 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 c41bf3a..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,12 +4,15 @@ 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; @@ -22,7 +25,7 @@ * @date 2023/02/13 */ -@Api(tags = "绠$綉涓�寮犲浘") +@Api(tags = "缁煎悎灞曠ず\\绠$綉涓�寮犲浘") @RestController @RequestMapping("/oneMap") public class OneMapController extends BaseController { @@ -31,8 +34,8 @@ OneMapService aMapOfPipelineService; - //============[椤圭洰缁熻 project Statistics]================== + /** * 椤圭洰绫诲埆 * Project category @@ -137,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); + } + /** * 椤圭洰宸ョ▼灞曠ず @@ -157,22 +173,46 @@ @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); - }*/ + } + + /** + * 鏍规嵁琛ㄥ悕鏌ヨ琛ㄥ瓧娈典俊鎭� + * 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