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);
欢迎好评!