上传OA附件的路径优化

This commit is contained in:
yuxueliang0813 2025-03-25 12:15:14 +08:00
parent 8af14e7336
commit 20f8988ac7
1 changed files with 7 additions and 2 deletions
main/java/shkd/repc/task

View File

@ -103,8 +103,13 @@ public class DobeContractAttachmentTask extends AbstractTask implements Plugin {
//在nas路径里需要供应链系统在/isc/oa/prod/{code}/下继续组装相对地址
// /isc/oa/prod/{code}/{summaryId}/下文件夹内为表单附件/isc/oa/prod/{code}/{subReference}/为合同正文附件
if(!DobeDWUtils.isEmpty(nasPath)){
//处理表单附件目录
nasPath = nasPath.substring(2).replace("\\","/");
//处理表单附件目录 Y:\\ISC\\oa\\prod\\ht-202410413-zjs
if(nasPath.startsWith("Y:\\ISC")){
//处理正式路径需要去掉顶层ISC
nasPath = nasPath.substring(6).replace("\\","/");
}else{
nasPath = nasPath.substring(2).replace("\\","/");
}
try {
boolean upresult = false;
//nasPath+fj_oaid;