管道基础大数据平台系统开发-【后端】-Server
xing
2023-02-21 af4568c1d9a1ba86252ed088cb5eecb01218aa86
src/main/java/com/lf/server/controller/show/OneMapController.java
@@ -1,14 +1,17 @@
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.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 +24,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 +39,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 +51,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 +64,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 +76,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 +92,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 +105,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 +118,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 +131,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> selectProjectType1() {
        List<String> 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);
    }