NC单据附件复制

原文链接:https://blog.csdn.net/Cc_Rain0624/article/details/142358007

 

          // 来源路
          String rootPath = "uapbd/" + IBDMetaDataIDConst.MATERIALPF + "/" + pfvo.getPrimaryKey();
          // 目标路径
          String destDirPath =
              "uapbd/" + IBDMetaDataIDConst.MATERIAL + "/" + material.getPrimaryKey();
          IFileSystemService service = NCLocator.getInstance().lookup(IFileSystemService.class);
          // 复制附件
          service.copyTo(rootPath, destDirPath, FSOption.WHEN_DEST_EXIST_OVERWRITE, false);


posted @ 2025-07-13 08:20  山䂥进城  阅读(5)  评论(0)    收藏  举报