管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-18 5689a8b7a6e54773e726af25e62c7761101a219a
src/main/java/com/lf/server/controller/data/PublishController.java
@@ -152,7 +152,8 @@
                entity.setToken(WebHelper.getToken(req));
            }
            int count = publishService.insertForPub(entity);
            String method = getConvertMethod(entity.getType());
            int count = publishService.postForPub(entity, method, req);
            return success(count);
        } catch (Exception ex) {
@@ -160,6 +161,23 @@
        }
    }
    /**
     * 获取转换方法
     */
    private String getConvertMethod(String type) throws Exception {
        switch (type) {
            case "DOM":
                return "Convert/ToTiles";
            case "MPT":
            case "3DML":
                return "Convert/ToSG";
            case "BIM":
                return "Convert/ToTileset";
            default:
                throw new Exception("数据类型不匹配");
        }
    }
    @SysLog()
    @ApiOperation(value = "删除多条")
    @ApiImplicitParams({