月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-08-28 436f9cf07a4d1a5b5713272706c3bafc1c4cf928
src/main/java/com/moon/server/controller/data/upload/UploadController.java
@@ -163,17 +163,13 @@
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query", example = "20230722"),
            @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0"),
            @ApiImplicitParam(name = "epsgCode", value = "坐标编码", dataType = "String", paramType = "query", example = "EPSG:4490")
            @ApiImplicitParam(name = "verid", value = "版本ID", dataType = "Integer", paramType = "query", example = "0")
    })
    @GetMapping(value = "/selectMappers")
    public ResponseMsg<Object> selectMappers(String path, Integer dirid, Integer verid, String epsgCode, HttpServletRequest req) {
    public ResponseMsg<Object> selectMappers(String path, Integer dirid, Integer verid, HttpServletRequest req) {
        try {
            if (StringHelper.isEmpty(path) || StringHelper.isEmpty(epsgCode) || null == dirid || null == verid) {
                return fail("路径、目录ID、版本ID和坐标编码不能为空");
            }
            if (1 > uploadService.selectCount4Coord(epsgCode)) {
                return fail("坐标编码" + epsgCode + "不存在");
            if (StringHelper.isEmpty(path) || null == dirid || null == verid) {
                return fail("路径、目录ID、版本ID不能为空");
            }
            DirEntity dir = dirService.selectDir(dirid);
            if (null == dir) {
@@ -185,7 +181,7 @@
            }
            UserEntity ue = tokenService.getCurrentUser(req);
            List<MetaFileEntity> list = uploadService.selectMappers(ue, path, dir, ver, epsgCode);
            List<MetaFileEntity> list = uploadService.selectMappers(ue, path, dir, ver);
            return success(list);
        } catch (Exception ex) {