管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-04-18 48897e3d10652ad6ed1f790357a5839baff8de31
src/main/java/com/lf/server/service/show/CadService.java
@@ -41,13 +41,13 @@
    public String convert(int metaId) {
        MetaEntity me = metaService.selectById(metaId);
        if (null == me || StringUtils.isEmpty(me.getPath()) || !StaticData.DWG.equals(me.getType())) {
            return null;
            return "";
        }
        String dwg = pathHelper.getConfig().getUploadPath() + File.separator + me.getPath();
        File file = new File(dwg);
        if (!file.exists() || file.isDirectory()) {
            return null;
            return "";
        }
        String[] strs = me.getPath().replace("\\", "/").split("/");
@@ -62,9 +62,12 @@
            return strs[0] + "/" + outName;
        }
        return null;
        return "";
    }
    /**
     * 调用格式转换
     */
    public boolean callConvert(String dwgFile, String outPath, String outName) {
        try {
            String jsonParam = "{'srcpath':'" + dwgFile + "','outpath':'" + outPath + "','outname':'" + outName + "'}";