|
@@ -64,6 +64,7 @@ public class WebVOTransformService {
|
|
|
//装载中国专利
|
|
|
public void loadCNPatent(String chinaPatentZhuLuStr, UploadPatentWebDTO uploadPatentWebDTO) {
|
|
|
this.loadPatent(uploadPatentWebDTO, true);
|
|
|
+
|
|
|
Patent patent = uploadPatentWebDTO.getPatent();
|
|
|
patent.setPatentNo(patent.getAppNo());
|
|
|
if (chinaPatentZhuLuStr != null && !chinaPatentZhuLuStr.trim().equals("") && !chinaPatentZhuLuStr.equals("{}") && !chinaPatentZhuLuStr.contains("请求不合法")) {
|
|
@@ -73,14 +74,13 @@ public class WebVOTransformService {
|
|
|
//装载优先权号、优先权国家、优先权日
|
|
|
this.loadPriorities(patent, chinaPatentZhuLu.getPR());
|
|
|
|
|
|
- this.loadCountry(patent, true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
//装载专利信息
|
|
|
public void loadPatent(UploadPatentWebDTO uploadPatentWebDTO, Boolean ifCn) {
|
|
|
- String country = "";
|
|
|
+
|
|
|
Patent patent = uploadPatentWebDTO.getPatent();
|
|
|
StarPatentVO starPatentVO = uploadPatentWebDTO.getStarPatentVO();
|
|
|
//装载专利类型
|
|
@@ -109,7 +109,7 @@ public class WebVOTransformService {
|
|
|
}
|
|
|
|
|
|
//装载发明人
|
|
|
- this.loadInventor(patent, starPatentVO.getIV());
|
|
|
+ this.loadInventor(patent, starPatentVO.getIN());
|
|
|
|
|
|
//装载申请人
|
|
|
this.loadApplicant(patent, starPatentVO.getPA());
|
|
@@ -121,10 +121,12 @@ public class WebVOTransformService {
|
|
|
this.loadAgency(patent, starPatentVO.getAGN());
|
|
|
|
|
|
//装载IPC分类号
|
|
|
- if (patent.getPatentType()!=null&&patent.getPatentType().equals("3")) {
|
|
|
- this.loadPatentLoc(patent, starPatentVO.getMC(), starPatentVO.getIC());
|
|
|
+ if (patent.getPatentType() != null && patent.getPatentType().equals("3")) {
|
|
|
+ this.loadPatentLoc(patent,starPatentVO.getIC());
|
|
|
+ this.loadPatentMainLoc(patent,starPatentVO.getMC());
|
|
|
} else {
|
|
|
- this.loadPatentIPC(patent, starPatentVO.getMC(), starPatentVO.getIC());
|
|
|
+ this.loadPatentIPC(patent, starPatentVO.getIC());
|
|
|
+ this.loadPatentMainIPC(patent,starPatentVO.getMC());
|
|
|
}
|
|
|
//装载公告日
|
|
|
this.loadGrantDate(patent, starPatentVO.getPD(), starPatentVO.getGD());
|
|
@@ -139,7 +141,6 @@ public class WebVOTransformService {
|
|
|
|
|
|
//装载法律状态(os_patent表status字段值)
|
|
|
this.loadPatentStatus(patent, starPatentVO.getLG());
|
|
|
- patent.setAppCountry(country);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -148,31 +149,34 @@ public class WebVOTransformService {
|
|
|
List<StarPatentVO> worldPatentZhuLus = JSON.parseArray(worldPatentZhuLuStr, StarPatentVO.class);
|
|
|
StarPatentVO worldPatentZhuLu = worldPatentZhuLus.get(0);
|
|
|
Patent patent = uploadPatentWebDTO.getPatent();
|
|
|
+ if (worldPatentZhuLuStr != null && !worldPatentZhuLuStr.trim().equals("") && !worldPatentZhuLuStr.equals("{}") && !worldPatentZhuLuStr.contains("请求不合法")) {
|
|
|
|
|
|
- this.loadPatent(uploadPatentWebDTO, false);
|
|
|
- //装载申请日
|
|
|
- this.loadAppDate(patent, worldPatentZhuLu.getAppDate());
|
|
|
+ this.loadPatent(uploadPatentWebDTO, false);
|
|
|
+ this.loadWorldPatentNo(patent);
|
|
|
+ //装载申请日
|
|
|
+ this.loadAppDate(patent, worldPatentZhuLu.getAppDate());
|
|
|
|
|
|
- //装载公开日
|
|
|
- this.loadPublicDate(patent, worldPatentZhuLu.getPubDate(), null);
|
|
|
+ //装载公开日
|
|
|
+ this.loadPublicDate(patent, worldPatentZhuLu.getPubDate(), null);
|
|
|
|
|
|
- //装载CPC分类号
|
|
|
- this.loadPatentCPC(patent, worldPatentZhuLu.getCpc());
|
|
|
+ //装载CPC分类号
|
|
|
+ this.loadPatentCPC(patent, worldPatentZhuLu.getCpc());
|
|
|
|
|
|
- //装载申请人
|
|
|
- this.loadApplicant(patent, worldPatentZhuLu.getPA());
|
|
|
+ //装载申请人
|
|
|
+ this.loadApplicant(patent, worldPatentZhuLu.getPA());
|
|
|
|
|
|
- //装载发明人
|
|
|
- this.loadInventor(patent, worldPatentZhuLu.getIV());
|
|
|
+ //装载发明人
|
|
|
+ this.loadInventor(patent, worldPatentZhuLu.getIV());
|
|
|
|
|
|
- //装载优先权号、优先权国家、优先权日
|
|
|
- this.loadPriorities(patent, worldPatentZhuLu.getPR());
|
|
|
+ //装载优先权号、优先权国家、优先权日
|
|
|
+ this.loadPriorities(patent, worldPatentZhuLu.getPR());
|
|
|
|
|
|
- //装载标题
|
|
|
- this.loadTitle(patent, worldPatentZhuLu.getTitle());
|
|
|
+ //装载标题
|
|
|
+ this.loadTitle(patent, worldPatentZhuLu.getTitle());
|
|
|
|
|
|
- //装载摘要
|
|
|
- this.loadAbstractStr(patent, worldPatentZhuLu.getAbstract());
|
|
|
+ //装载摘要
|
|
|
+ this.loadAbstractStr(patent, worldPatentZhuLu.getAbstract());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -279,7 +283,7 @@ public class WebVOTransformService {
|
|
|
List<PatentPerson> patentPeople = new ArrayList<>();
|
|
|
for (int i = 0; i < patentInventorNames.size(); i++) {
|
|
|
PatentPerson patentPerson = new PatentPerson();
|
|
|
- patentPerson.setOrder(0);
|
|
|
+ patentPerson.setOrder(i);
|
|
|
patentPerson.setType("1");
|
|
|
patentPerson.setName(patentInventorNames.get(i));
|
|
|
patentPeople.add(patentPerson);
|
|
@@ -292,7 +296,7 @@ public class WebVOTransformService {
|
|
|
public void loadInventor(Patent patent, List<String> patentInventorNames) {
|
|
|
if (patent.getInventor() == null || patent.getInventor().size() == 0) {
|
|
|
|
|
|
- if (patentInventorNames != null && patentInventorNames.size()!=0) {
|
|
|
+ if (patentInventorNames != null && patentInventorNames.size() != 0) {
|
|
|
|
|
|
List<PatentPerson> patentPeople = new ArrayList<>();
|
|
|
for (int i = 0; i < patentInventorNames.size(); i++) {
|
|
@@ -314,7 +318,7 @@ public class WebVOTransformService {
|
|
|
* @param mainIpc
|
|
|
* @param ipcs
|
|
|
*/
|
|
|
- public void loadPatentIPC(Patent patent, String mainIpc, String ipcs) {
|
|
|
+ public void loadPatentIPC1(Patent patent, String mainIpc, String ipcs) {
|
|
|
//装载IPC分类号
|
|
|
if (ipcs != null && !ipcs.equals("")) {
|
|
|
List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
@@ -341,63 +345,108 @@ public class WebVOTransformService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void loadPatentIPC(Patent patent, String mainIpc, List<String> ipcArr ) {
|
|
|
+ /**
|
|
|
+ * 装载ipc分类号
|
|
|
+ *
|
|
|
+ * @param patent
|
|
|
+ * @param ipcs
|
|
|
+ */
|
|
|
+ public void loadPatentIPC(Patent patent, String ipcs) {
|
|
|
//装载IPC分类号
|
|
|
- if (ipcArr != null && ipcArr.size()>0) {
|
|
|
+ if (ipcs != null && !ipcs.equals("")) {
|
|
|
List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
|
+ List<String> ipcArr = Arrays.asList(ipcs.split(";"));
|
|
|
for (int i = 0; i < ipcArr.size(); i++) {
|
|
|
PatentClassify patentClassify = PatentClassifySplitter.split(ipcArr.get(i));
|
|
|
patentClassifies.add(patentClassify);
|
|
|
}
|
|
|
patent.setIpc(patentClassifies);
|
|
|
- if (mainIpc == null || mainIpc.equals("")) {
|
|
|
- if (patentClassifies.size() > 0) {
|
|
|
- patent.setMipc(patentClassifies.get(0));
|
|
|
- }
|
|
|
- } else {
|
|
|
- PatentClassify patentClassify = PatentClassifySplitter.split(mainIpc);
|
|
|
- patent.setMipc(patentClassify);
|
|
|
+ if (patentClassifies.size() > 0) {
|
|
|
+ patent.setMipc(patentClassifies.get(0));
|
|
|
}
|
|
|
- } else {
|
|
|
- if (mainIpc != null && !mainIpc.equals("")) {
|
|
|
- PatentClassify patentClassify = PatentClassifySplitter.split(mainIpc);
|
|
|
- patent.setMipc(patentClassify);
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 装载ipc主分类号
|
|
|
+ *
|
|
|
+ * @param patent
|
|
|
+ */
|
|
|
+ public void loadPatentMainIPC(Patent patent, String mainIpc) {
|
|
|
+ //装载IPC分类号
|
|
|
+ if (mainIpc != null && !mainIpc.equals("")) {
|
|
|
+ PatentClassify patentClassify = PatentClassifySplitter.split(mainIpc);
|
|
|
+ patent.setMipc(patentClassify);
|
|
|
+ if (patent.getIpc() == null || patent.getIpc().size() <= 0) {
|
|
|
patent.setIpc(Arrays.asList(patentClassify));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public void loadPatentIPC(Patent patent, List<String> ipcArr) {
|
|
|
+ //装载IPC分类号
|
|
|
+ if (ipcArr != null && ipcArr.size() > 0) {
|
|
|
+ List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
|
+ for (int i = 0; i < ipcArr.size(); i++) {
|
|
|
+ PatentClassify patentClassify = PatentClassifySplitter.split(ipcArr.get(i));
|
|
|
+ patentClassifies.add(patentClassify);
|
|
|
+ }
|
|
|
+ patent.setIpc(patentClassifies);
|
|
|
+ if (patentClassifies.size() > 0) {
|
|
|
+ patent.setMipc(patentClassifies.get(0));
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 装载loc分类号
|
|
|
*
|
|
|
* @param patent
|
|
|
- * @param mainIpc
|
|
|
* @param ipcs
|
|
|
*/
|
|
|
- public void loadPatentLoc(Patent patent, String mainIpc, String ipcs) {
|
|
|
+ public void loadPatentLoc(Patent patent, String ipcs) {
|
|
|
//装载Loc分类号
|
|
|
if (ipcs != null && !ipcs.equals("")) {
|
|
|
- List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
|
List<String> ipcArr = Arrays.asList(ipcs.split(";"));
|
|
|
- for (int i = 0; i < ipcArr.size(); i++) {
|
|
|
- PatentClassify patentClassify = PatentClassifySplitter.split(ipcArr.get(i));
|
|
|
- patentClassifies.add(patentClassify);
|
|
|
- }
|
|
|
- patent.setLoc(patentClassifies);
|
|
|
-
|
|
|
- if (mainIpc == null || mainIpc.equals("")) {
|
|
|
+ //装载IPC分类号
|
|
|
+ if (ipcArr != null && ipcArr.size() > 0) {
|
|
|
+ List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
|
+ for (int i = 0; i < ipcArr.size(); i++) {
|
|
|
+ PatentClassify patentClassify = PatentClassifySplitter.split(ipcArr.get(i));
|
|
|
+ patentClassifies.add(patentClassify);
|
|
|
+ }
|
|
|
+ patent.setLoc(patentClassifies);
|
|
|
if (patentClassifies.size() > 0) {
|
|
|
patent.setMloc(patentClassifies.get(0));
|
|
|
}
|
|
|
- } else {
|
|
|
- PatentClassify patentClassify = PatentClassifySplitter.split(mainIpc);
|
|
|
- patent.setMloc(patentClassify);
|
|
|
+
|
|
|
}
|
|
|
- } else {
|
|
|
- if (mainIpc != null && !mainIpc.equals("")) {
|
|
|
- PatentClassify patentClassify = PatentClassifySplitter.split(mainIpc);
|
|
|
- patent.setMloc(patentClassify);
|
|
|
+ }
|
|
|
+ PatentClassify patentClassify = new PatentClassify();
|
|
|
+ patentClassify.setLevel1("");
|
|
|
+ patentClassify.setLevel2("");
|
|
|
+ patentClassify.setLevel3("");
|
|
|
+ patent.setMipc(patentClassify);
|
|
|
+ patent.setIpc(new ArrayList<>());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 装载loc分类号
|
|
|
+ *
|
|
|
+ * @param patent
|
|
|
+ * @param mainLoc
|
|
|
+ */
|
|
|
+ public void loadPatentMainLoc(Patent patent, String mainLoc) {
|
|
|
+ //装载Loc分类号
|
|
|
+ if (mainLoc != null && !mainLoc.equals("")) {
|
|
|
+ PatentClassify patentClassify = PatentClassifySplitter.split(mainLoc);
|
|
|
+ patent.setMloc(patentClassify);
|
|
|
+ if (patent.getLoc() == null || patent.getLoc().size() <= 0) {
|
|
|
patent.setLoc(Arrays.asList(patentClassify));
|
|
|
}
|
|
|
}
|
|
@@ -429,18 +478,19 @@ public class WebVOTransformService {
|
|
|
}
|
|
|
|
|
|
public void loadPatentCPC(Patent patent, List<String> cpcArr) {
|
|
|
- if(cpcArr==null){
|
|
|
+ if (cpcArr == null) {
|
|
|
return;
|
|
|
}
|
|
|
//装载IPC分类号
|
|
|
- List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
|
- for (int i = 0; i < cpcArr.size(); i++) {
|
|
|
- PatentClassify patentClassify = PatentClassifySplitter.split(cpcArr.get(i));
|
|
|
- patentClassifies.add(patentClassify);
|
|
|
- }
|
|
|
- patent.setIpc(patentClassifies);
|
|
|
+ List<PatentClassify> patentClassifies = new ArrayList<>();
|
|
|
+ for (int i = 0; i < cpcArr.size(); i++) {
|
|
|
+ PatentClassify patentClassify = PatentClassifySplitter.split(cpcArr.get(i));
|
|
|
+ patentClassifies.add(patentClassify);
|
|
|
+ }
|
|
|
+ patent.setIpc(patentClassifies);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 装载摘要
|
|
|
*
|
|
@@ -486,7 +536,7 @@ public class WebVOTransformService {
|
|
|
if (publicDate != null && !publicDate.equals("")) {
|
|
|
Date date = DateUtils.strToDate(publicDate);
|
|
|
patent.setPublicDate(date);
|
|
|
- } else if (patent.getPatentType()!=null&&!patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
+ } else if (patent.getPatentType() != null && !patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
if (grantDate != null && !grantDate.trim().equals("")) {
|
|
|
Date date = DateUtils.strToDate(grantDate);
|
|
|
patent.setPublicDate(date);
|
|
@@ -505,7 +555,7 @@ public class WebVOTransformService {
|
|
|
if (grantDate != null && !grantDate.equals("")) {
|
|
|
Date date = DateUtils.strToDate(grantDate);
|
|
|
patent.setGrantDate(date);
|
|
|
- } else if (patent.getPatentType()!=null&&!patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
+ } else if (patent.getPatentType() != null && !patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
if (publicDate != null && !publicDate.trim().equals("")) {
|
|
|
Date date = DateUtils.strToDate(publicDate);
|
|
|
patent.setGrantDate(date);
|
|
@@ -523,7 +573,7 @@ public class WebVOTransformService {
|
|
|
publicNo = publicNo.trim();
|
|
|
if (publicNo != null && !publicNo.equals("")) {
|
|
|
patent.setPublicNo(publicNo);
|
|
|
- } else if (patent.getPatentType()!=null&&!patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
+ } else if (patent.getPatentType() != null && !patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
if (grantNo != null && !grantNo.equals("")) {
|
|
|
patent.setPublicNo(grantNo);
|
|
|
}
|
|
@@ -539,7 +589,7 @@ public class WebVOTransformService {
|
|
|
public void loadGrantNo(Patent patent, String publicNo, String grantNo) {
|
|
|
if (grantNo != null && !grantNo.equals("")) {
|
|
|
patent.setGrantNo(grantNo);
|
|
|
- } else if (patent.getPatentType()!=null&&!patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
+ } else if (patent.getPatentType() != null && !patent.getPatentType().equals("1") && !patent.getPatentType().equals("8")) {
|
|
|
if (publicNo != null && !publicNo.equals("")) {
|
|
|
patent.setGrantNo(publicNo);
|
|
|
}
|
|
@@ -587,7 +637,7 @@ public class WebVOTransformService {
|
|
|
|
|
|
public void loadRightHolder(Patent patent, List<String> names) {
|
|
|
//装载权利人
|
|
|
- if (names != null && names.size()>0) {
|
|
|
+ if (names != null && names.size() > 0) {
|
|
|
List<PatentPerson> patentPeople = new ArrayList<>();
|
|
|
for (int i = 0; i < names.size(); i++) {
|
|
|
String name = names.get(i);
|
|
@@ -603,6 +653,7 @@ public class WebVOTransformService {
|
|
|
patent.setRightHolder(patent.getApplicant());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 装载代理机构
|
|
|
*
|
|
@@ -640,7 +691,7 @@ public class WebVOTransformService {
|
|
|
}
|
|
|
|
|
|
public void loadApplicant(Patent patent, List<String> names) {
|
|
|
- if (names != null && names.size()>0) {
|
|
|
+ if (names != null && names.size() > 0) {
|
|
|
List<PatentPerson> patentPeople = new ArrayList<>();
|
|
|
for (int i = 0; i < names.size(); i++) {
|
|
|
String name = names.get(i);
|
|
@@ -733,11 +784,11 @@ public class WebVOTransformService {
|
|
|
* @param patent
|
|
|
* @param cnFullXmlStr
|
|
|
*/
|
|
|
- public void loadFullText(Patent patent, String cnFullXmlStr,Integer taskId) {
|
|
|
+ public void loadFullText(Patent patent, String cnFullXmlStr, Integer taskId) {
|
|
|
try {
|
|
|
//若没有取到全文文本,即取不到说明书文本,则将当前申请号或专利号和备注信息记录到问题记录表
|
|
|
if (cnFullXmlStr.equals("")) {
|
|
|
- recordQuestionPatent(patent.getAppNo(),taskId,1);
|
|
|
+ recordQuestionPatent(patent.getAppNo(), taskId, 1);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -807,7 +858,7 @@ public class WebVOTransformService {
|
|
|
* @param patent
|
|
|
* @param cnFullXmlStr
|
|
|
*/
|
|
|
- public void loadClaim(Patent patent, String cnFullXmlStr,Integer taskId) {
|
|
|
+ public void loadClaim(Patent patent, String cnFullXmlStr, Integer taskId) {
|
|
|
try {
|
|
|
if (cnFullXmlStr != null && cnFullXmlStr != "") {
|
|
|
SAXReader reader = new SAXReader();
|
|
@@ -850,31 +901,31 @@ public class WebVOTransformService {
|
|
|
params.setContent(reClaim);
|
|
|
params.setPatentNo(patent.getPatentNo());
|
|
|
List<RePatentClaim> rePatentClaims = ClaimSplitUtils.formatPatentRight(params);
|
|
|
- List<RePatentClaim> mainClaims =rePatentClaims.stream().filter(item->item.getParentSort()!=null&&item.getParentSort().equals("-1")).collect(Collectors.toList());
|
|
|
- if(rePatentClaims!=null){
|
|
|
+ List<RePatentClaim> mainClaims = rePatentClaims.stream().filter(item -> item.getParentSort() != null && item.getParentSort().equals("-1")).collect(Collectors.toList());
|
|
|
+ if (rePatentClaims != null) {
|
|
|
patent.setRightNum(rePatentClaims.size());
|
|
|
}
|
|
|
- if(mainClaims!=null){
|
|
|
+ if (mainClaims != null) {
|
|
|
patent.setMainRightNum(mainClaims.size());
|
|
|
}
|
|
|
- }
|
|
|
- else {
|
|
|
- this.recordQuestionPatent(patent.getAppNo(),taskId,2);
|
|
|
+ } else {
|
|
|
+ this.recordQuestionPatent(patent.getAppNo(), taskId, 2);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void recordQuestionPatent(String appNo,Integer taskId,Integer type) {
|
|
|
+ public void recordQuestionPatent(String appNo, Integer taskId, Integer type) {
|
|
|
PatentImportErrorLog patentImportErrorLog = new PatentImportErrorLog();
|
|
|
patentImportErrorLog.setPatentNo(appNo);
|
|
|
patentImportErrorLog.setErrorType(type);
|
|
|
patentImportErrorLog.setTaskId(taskId);
|
|
|
patentImportErrorLog.insert();
|
|
|
}
|
|
|
+
|
|
|
public String getPersonType(String name, List<PatentPerson> personList) {
|
|
|
- if(name==null){
|
|
|
+ if (name == null) {
|
|
|
return null;
|
|
|
}
|
|
|
List<String> names = new ArrayList<>();
|
|
@@ -957,7 +1008,7 @@ public class WebVOTransformService {
|
|
|
UploadParamsVO.Field field = new UploadParamsVO.Field();
|
|
|
field.setKey("监控周期:4");
|
|
|
Date date = new Date();
|
|
|
- String cycle = DateUtils2.getDateIndexStr(date,importTaskAMVO.getUpdateCycle());
|
|
|
+ String cycle = DateUtils2.getDateIndexStr(date, importTaskAMVO.getUpdateCycle());
|
|
|
|
|
|
field.setFieldList(Arrays.asList(cycle));
|
|
|
|
|
@@ -986,7 +1037,7 @@ public class WebVOTransformService {
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
- public void getCNPatentPicture(UploadPatentWebDTO uploadPatentWebDTO,Integer taskId) {
|
|
|
+ public void getCNPatentPicture(UploadPatentWebDTO uploadPatentWebDTO, Integer taskId) {
|
|
|
try {
|
|
|
Long startMillis = System.currentTimeMillis();
|
|
|
List<String> pictureUrls = patentStarApiService.getExternalFigure(uploadPatentWebDTO.getStarPatentVO().getANO());
|
|
@@ -1006,9 +1057,8 @@ public class WebVOTransformService {
|
|
|
file.delete();
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
- else {
|
|
|
- this.recordQuestionPatent(patent.getAppNo(),taskId,4);
|
|
|
+ } else {
|
|
|
+ this.recordQuestionPatent(patent.getAppNo(), taskId, 4);
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
@@ -1018,11 +1068,11 @@ public class WebVOTransformService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- public void getCnPatentPDF(String pdfUrlStr,StarPatentVO starPatentVO) throws Exception {
|
|
|
- if(pdfUrlStr==null){
|
|
|
- return;
|
|
|
- }
|
|
|
- String pdfUrl1 = "", pdfUrl2 = "";
|
|
|
+ public void getCnPatentPDF(String pdfUrlStr, StarPatentVO starPatentVO) throws Exception {
|
|
|
+ if (pdfUrlStr == null) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ String pdfUrl1 = "", pdfUrl2 = "";
|
|
|
if (pdfUrlStr.contains("|http")) { //若包含公开和授权两个pdf
|
|
|
String[] pdfUrlArr = pdfUrlStr.split("\\|http");
|
|
|
pdfUrl1 = pdfUrlArr[0].substring(pdfUrlArr[0].indexOf("http"), pdfUrlArr[0].indexOf("?"));
|
|
@@ -1045,10 +1095,9 @@ public class WebVOTransformService {
|
|
|
fileManagerService.uploadFileWithGuid(file2, guid2);
|
|
|
}
|
|
|
} else { //若只有一个
|
|
|
- if(pdfUrlStr.contains("?")) {
|
|
|
+ if (pdfUrlStr.contains("?")) {
|
|
|
pdfUrl1 = pdfUrlStr.substring(pdfUrlStr.indexOf("http"), pdfUrlStr.indexOf("?"));
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
pdfUrl1 = pdfUrlStr.substring(pdfUrlStr.indexOf("http"));
|
|
|
}
|
|
|
if (pdfUrl1.contains("0A_CN_0.pdf")) {
|
|
@@ -1063,8 +1112,8 @@ public class WebVOTransformService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public void getWdPatentPDF(String pdfUrl,String usedPatentNo) throws Exception{
|
|
|
- if(pdfUrl==null){
|
|
|
+ public void getWdPatentPDF(String pdfUrl, String usedPatentNo) throws Exception {
|
|
|
+ if (pdfUrl == null) {
|
|
|
return;
|
|
|
}
|
|
|
if (!pdfUrl.equals("")) {
|