管道基础大数据平台系统开发-【后端】-Server
xing
2023-02-21 e1e254787f8b9327a4ed47a7559d6b56db13c80b
src/main/java/com/lf/server/controller/show/OneMapController.java
@@ -10,6 +10,7 @@
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 +23,7 @@
 * @date 2023/02/13
 */
@Api(tags = "管网一张图")
@Api(tags = "综合展示\\管网一张图")
@RestController
@RequestMapping("/oneMap")
public class OneMapController extends BaseController {
@@ -30,16 +31,9 @@
    @Autowired
    OneMapService aMapOfPipelineService;
    //@SysLog()
    @GetMapping("/hello")
    public ResponseMsg<Object> hello() {
        System.out.println("log = " + log);
        return success("hello! 您已经成功访问", 1);
    }
    //============[项目统计 project Statistics]==================
    /**
     * 项目类别
     * Project category
@@ -146,15 +140,49 @@
    /**
     * 数据统计
     * 访问次数
     * Number of visits
     * 项目工程展示
     * Project engineering display
     */
    @SysLog()
    @ApiOperation(value = "访问次数")
    @GetMapping("data_visit1")
    public ResponseMsg<Object> dataVisitConut1() {
        List<String> resList = aMapOfPipelineService.dataVisitCount();
    @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() {
        return success("hello! 您已经成功访问-项目工程巡视");
    }
    /**
     * 项目工程类型
     * Project type
     */
    /*@SysLog()
    @ApiOperation(value = "项目工程类型")
    @GetMapping("/countProjectType")
    public ResponseMsg<Object> countProjectType() {
        List<String> resList = aMapOfPipelineService.countProjectType1();
        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);
    }