月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-13 86bf08ff8f700356de6b8c68fb4013409499fd55
src/main/java/com/moon/server/controller/data/PublishController.java
@@ -84,7 +84,7 @@
    private String getType(String type) throws Exception {
        switch (type) {
            case "DOM":
                return "type in ('tif', 'tiff', 'img', 'jp2', 'jpg') and mata_type in (1, 3, 4, 5)";
                return "type in ('tif', 'tiff', 'img', 'jp2', 'jpg') and mata_type in (1, 2, 3, 4, 5)";
            case "DEM":
                return "type in ('tif', 'tiff', 'dem') and mata_type = 2";
            case "Vector":
@@ -167,16 +167,15 @@
    @SysLog()
    @ApiOperation(value = "分页查询数简的颜色表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "port", value = "端口", dataType = "int", paramType = "query", example = "50001"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "int", paramType = "query", example = "1")
    })
    @GetMapping(value = "/selectSjColorTables")
    public void selectSjColorTables(Integer port, int pageSize, int pageIndex, HttpServletRequest req, HttpServletResponse res) {
    public void selectSjColorTables(int pageSize, int pageIndex, HttpServletRequest req, HttpServletResponse res) {
        pageIndex = Math.max(pageIndex, 1);
        pageSize = Math.max(pageSize, 5);
        shuJianService.selectSjColorTables(port, pageSize, pageIndex, req, res);
        shuJianService.selectSjColorTables(pageSize, pageIndex, req, res);
    }
    @SysLog()
@@ -190,6 +189,16 @@
    }
    @SysLog()
    @ApiOperation(value = "查询数简任务状态")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "任务ID", dataType = "int", paramType = "query", example = "10008101")
    })
    @GetMapping(value = "/selectSjMissionStatus")
    public void selectSjMissionStatus(Integer id, HttpServletRequest req, HttpServletResponse res) {
        shuJianService.selectSjMissionStatus(id, req, res);
    }
    @SysLog()
    @ApiOperation(value = "插入数简服务")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body")