|
@@ -115,18 +115,20 @@ public class GetPatentPDFFromWebThread extends Thread {
|
|
|
}
|
|
|
}
|
|
|
//根据专利号调用"获得世界专利pdf"接口,获得pdf的url地址
|
|
|
- } else {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
pdfUrl = patentStarApiService.getEnPdfApi(usedPatentNo);
|
|
|
//若没有取到说明书pdf,则将当前申请号和备注信息存入问题记录表,并返回空对象
|
|
|
// if (pdfUrl.equals("") || pdfUrl.equals("{}")) {
|
|
|
// recordQuestionPatent(starPatent.getApplicationNo(), task.getId(), 4);
|
|
|
// return;
|
|
|
// }
|
|
|
- String guid1 = FormatUtil.getPDFFormat(starPatentVO.getApplicationNo(), 0);
|
|
|
- File file1 = FileUtils.getFileByUrl(pdfUrl);
|
|
|
- fileManagerService.uploadFileWithGuid(file1, guid1);
|
|
|
-
|
|
|
- }
|
|
|
+ if (!pdfUrl.equals("")) {
|
|
|
+ String guid1 = FormatUtil.getPDFFormat(starPatentVO.getApplicationNo(), 0);
|
|
|
+ File file1 = FileUtils.getFileByUrl(pdfUrl);
|
|
|
+ fileManagerService.uploadFileWithGuid(file1, guid1);
|
|
|
+ }
|
|
|
}
|
|
|
taskThread.updateProcess(false,4,"");
|
|
|
} catch (Exception e) {
|