fix:iwork用印及回调调试

This commit is contained in:
FCL
2026-03-23 17:59:10 +08:00
parent d644149a94
commit 007a60d437

View File

@@ -37,6 +37,9 @@ import org.springframework.util.ObjectUtils;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;
@@ -125,7 +128,17 @@ public class ReportDocumentAssistService {
dto.setYyqx("检测报告用印");
dto.setYysy("检测报告用印");
dto.setYysx("检测报告用印");
dto.setXyywjUrl(docFile.getUrl());
//读取文件url
CommonResult<FileRespDTO> ret1 = fileApi.getFile(docFile.getFileId());
String url = docFile.getUrl();
if(ret1.isSuccess())
url = ret1.getData().getUrl();
try {
url = URLDecoder.decode(url, "UTF-8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
dto.setXyywjUrl(url);
dto.setYwxtdjbh(entity.getDocumentCode());
dto.setBizCallbackKey(ReportDocListenerConstant.IWORK_BIZ_CALL_BACK_KEY); //业务回调标识,回调分发使用
return iWorkIntegrationApi.createWorkflow(dto);