管道基础大数据平台系统开发-【后端】-Server
xing
2023-02-21 ab69ebc575d4d9225d15e0e174ebd9978cf1c217
src/main/java/com/lf/server/controller/show/OneMapController.java
@@ -4,12 +4,14 @@
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;
@@ -22,7 +24,7 @@
 * @date 2023/02/13
 */
@Api(tags = "管网一张图")
@Api(tags = "综合展示\\管网一张图")
@RestController
@RequestMapping("/oneMap")
public class OneMapController extends BaseController {
@@ -31,8 +33,8 @@
    OneMapService aMapOfPipelineService;
    //============[项目统计 project Statistics]==================
    /**
     * 项目类别
     * Project category
@@ -157,8 +159,21 @@
    @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);
    }
@@ -174,5 +189,16 @@
        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);
    }
}