|
@@ -82,29 +82,29 @@ public class GetCataloguingFromWebThread extends Thread {
|
|
|
EsService esService = applicationContext.getBean(EsService.class);
|
|
|
|
|
|
//添加同族专利
|
|
|
- String familyPatentNoStr = patentStarApiService.getFamilyByPubNoApi(uploadPatentWebDTO.getPatent().getPublicNo());
|
|
|
- if (!familyPatentNoStr.equals("no data")) {
|
|
|
- FamilyPatentNo familyPatentNo = JSON.parseObject(familyPatentNoStr, FamilyPatentNo.class);
|
|
|
- List<String> familyPatentNos = new ArrayList<>();
|
|
|
- if (familyPatentNo != null && familyPatentNo.getFamilyinfo() != null) {
|
|
|
- familyPatentNos = Arrays.asList(familyPatentNo.getFamilyinfo().split(";"));
|
|
|
- }
|
|
|
- if (familyPatentNos.size() != 0) {
|
|
|
- EsPatentFamilyDTO esPatentFamilyDTO = esService.addEsPatentFamily(familyPatentNos, "inpadoc");
|
|
|
- uploadPatentWebDTO.getPatent().setInpadocFamilyNum(esPatentFamilyDTO.getFamilyNum());
|
|
|
- uploadPatentWebDTO.getPatent().setInpadocFamilyId(esPatentFamilyDTO.getPatentFamilyId());
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- //添加法律事务
|
|
|
- esService.addEsLegalEvent(uploadPatentWebDTO.getStarPatentVO().getPublicNo());
|
|
|
-
|
|
|
- //添加引用专利
|
|
|
- String nos = starPatentVO.getQuoteNos();
|
|
|
- if (nos != null) {
|
|
|
- List<String> quotedNos = this.reQuotedNos(nos);
|
|
|
- esService.addEsQuotePatent(uploadPatentWebDTO.getPatent().getPublicNo(), quotedNos);
|
|
|
- }
|
|
|
+// String familyPatentNoStr = patentStarApiService.getFamilyByPubNoApi(uploadPatentWebDTO.getPatent().getPublicNo());
|
|
|
+// if (!familyPatentNoStr.equals("no data")) {
|
|
|
+// FamilyPatentNo familyPatentNo = JSON.parseObject(familyPatentNoStr, FamilyPatentNo.class);
|
|
|
+// List<String> familyPatentNos = new ArrayList<>();
|
|
|
+// if (familyPatentNo != null && familyPatentNo.getFamilyinfo() != null) {
|
|
|
+// familyPatentNos = Arrays.asList(familyPatentNo.getFamilyinfo().split(";"));
|
|
|
+// }
|
|
|
+// if (familyPatentNos.size() != 0) {
|
|
|
+// EsPatentFamilyDTO esPatentFamilyDTO = esService.addEsPatentFamily(familyPatentNos, "inpadoc");
|
|
|
+// uploadPatentWebDTO.getPatent().setInpadocFamilyNum(esPatentFamilyDTO.getFamilyNum());
|
|
|
+// uploadPatentWebDTO.getPatent().setInpadocFamilyId(esPatentFamilyDTO.getPatentFamilyId());
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// //添加法律事务
|
|
|
+// esService.addEsLegalEvent(uploadPatentWebDTO.getStarPatentVO().getPublicNo());
|
|
|
+//
|
|
|
+// //添加引用专利
|
|
|
+// String nos = starPatentVO.getQuoteNos();
|
|
|
+// if (nos != null) {
|
|
|
+// List<String> quotedNos = this.reQuotedNos(nos);
|
|
|
+// esService.addEsQuotePatent(uploadPatentWebDTO.getPatent().getPublicNo(), quotedNos);
|
|
|
+// }
|
|
|
//加入es保存队列
|
|
|
importFromWebToEsService.loadPatentMessageDone(uploadPatentWebDTO);
|
|
|
} catch (Exception e) {
|