¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.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.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 管ç½ä¸å¼ å¾ |
| | | * aFigurePipelineNetwork |
| | | * |
| | | * @author xing |
| | | * @date 2023/02/13 |
| | | */ |
| | | |
| | | @Api(tags = "管ç½ä¸å¼ å¾") |
| | | @RestController |
| | | @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]================== |
| | | |
| | | /** |
| | | * 项ç®ç±»å« |
| | | * Project category |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "项ç®ç±»å«") |
| | | @GetMapping("/countProjectCategory") |
| | | public ResponseMsg<Object> projectCategoryCount() { |
| | | List<String> resList = aMapOfPipelineService.projectCategoryCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * 项ç®ä½ç½®å叿¥å£ |
| | | * Project location |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "项ç®ä½ç½®å叿¥å£") |
| | | @GetMapping("/countProjectLocation") |
| | | public ResponseMsg<Object> projectLocationCount() { |
| | | List<String> resList = aMapOfPipelineService.projectLocationCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å½å®¶ç»´åº¦-æ°éç»è®¡ |
| | | * Country dimension |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "å½å®¶ç»´åº¦-æ°éç»è®¡") |
| | | @GetMapping("/countCountryDimension") |
| | | public ResponseMsg<Object> countryDimensionCount() { |
| | | List<String> resList = aMapOfPipelineService.countryDimensionCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * ç维度-æ°éç»è®¡ |
| | | * Province dimension - quantity |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "ç维度-æ°éç»è®¡") |
| | | @GetMapping("/countProvinceDimension") |
| | | public ResponseMsg<Object> provinceDimensionCount() { |
| | | List<String> resList = aMapOfPipelineService.provinceDimensionCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | //============[æ°æ®ç»è®¡ data Statistics]================== |
| | | |
| | | /** |
| | | * æ°æ®ç»è®¡ |
| | | * æ°æ®åå¨ |
| | | * data storage |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "æ°æ®åå¨ç»è®¡") |
| | | @GetMapping("/countDataStorage") |
| | | public ResponseMsg<Object> dataStorageCount() { |
| | | List<String> resList = aMapOfPipelineService.dataStorageCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®ç»è®¡ |
| | | * æä»¶æ ¼å¼ç»´åº¦-æä»¶ä¸ªæ° |
| | | * File format dimension |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "æä»¶æ ¼å¼ç»´åº¦-æä»¶ä¸ªæ°") |
| | | @GetMapping("/countFileFormat") |
| | | public ResponseMsg<Object> fileFormatCount() { |
| | | List<String> resList = aMapOfPipelineService.fileFormatCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®ç»è®¡ |
| | | * æ°æ®ç³è¯· |
| | | * Data application |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "æ°æ®ç³è¯·") |
| | | @GetMapping("/countDataApply") |
| | | public ResponseMsg<Object> dataApplyCount() { |
| | | List<String> resList = aMapOfPipelineService.dataApplyCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * æ°æ®ç»è®¡ |
| | | * è®¿é®æ¬¡æ° |
| | | * Number of visits |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "è®¿é®æ¬¡æ°") |
| | | @GetMapping("/countDataVisit") |
| | | public ResponseMsg<Object> dataVisitCount() { |
| | | List<String> resList = aMapOfPipelineService.dataVisitCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ°æ®ç»è®¡ |
| | | * è®¿é®æ¬¡æ° |
| | | * Number of visits |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "è®¿é®æ¬¡æ°") |
| | | @GetMapping("data_visit1") |
| | | public ResponseMsg<Object> dataVisitConut1() { |
| | | List<String> resList = aMapOfPipelineService.dataVisitCount(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | } |