上传OA附件的路径优化
This commit is contained in:
parent
8af14e7336
commit
20f8988ac7
main/java/shkd/repc/task
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue