|
@@ -69,6 +69,7 @@ public class ImportSinglePatentService {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
Patent patent = this.getPatentCataloguingFromWeb(starPatentVO);
|
|
Patent patent = this.getPatentCataloguingFromWeb(starPatentVO);
|
|
|
|
+
|
|
PatentJoin patentJoin = new PatentJoin();
|
|
PatentJoin patentJoin = new PatentJoin();
|
|
patentJoin.setName("patent");
|
|
patentJoin.setName("patent");
|
|
patent.setPatentJoin(patentJoin);
|
|
patent.setPatentJoin(patentJoin);
|
|
@@ -89,16 +90,15 @@ public class ImportSinglePatentService {
|
|
if (starPatentVO.getApplicationNo().startsWith("CN")) {
|
|
if (starPatentVO.getApplicationNo().startsWith("CN")) {
|
|
patentZhuLuStr = patentStarApiService.getCnBibApi(starPatentVO.getRowApplicationNo());
|
|
patentZhuLuStr = patentStarApiService.getCnBibApi(starPatentVO.getRowApplicationNo());
|
|
} else {
|
|
} else {
|
|
- patentZhuLuStr = patentStarApiService.getENBibApi(starPatentVO.getRowApplicationNo());
|
|
|
|
|
|
+ patentZhuLuStr = patentStarApiService.getENBibApi(starPatentVO.getPublicNo());
|
|
}
|
|
}
|
|
UploadPatentWebDTO uploadPatentWebDTO = new UploadPatentWebDTO();
|
|
UploadPatentWebDTO uploadPatentWebDTO = new UploadPatentWebDTO();
|
|
uploadPatentWebDTO.setPatent(new Patent());
|
|
uploadPatentWebDTO.setPatent(new Patent());
|
|
uploadPatentWebDTO.setStarPatentVO(starPatentVO);
|
|
uploadPatentWebDTO.setStarPatentVO(starPatentVO);
|
|
|
|
+ this.loadPatent(uploadPatentWebDTO);
|
|
if (patentZhuLuStr != null && !patentZhuLuStr.trim().equals("") && !patentZhuLuStr.equals("{}") && !patentZhuLuStr.contains("请求不合法")) {
|
|
if (patentZhuLuStr != null && !patentZhuLuStr.trim().equals("") && !patentZhuLuStr.equals("{}") && !patentZhuLuStr.contains("请求不合法")) {
|
|
- this.loadPatent(uploadPatentWebDTO);
|
|
|
|
if (starPatentVO.getApplicationNo().startsWith("CN")) {
|
|
if (starPatentVO.getApplicationNo().startsWith("CN")) {
|
|
this.loadCNPatent(patentZhuLuStr, uploadPatentWebDTO.getPatent(), starPatentVO);
|
|
this.loadCNPatent(patentZhuLuStr, uploadPatentWebDTO.getPatent(), starPatentVO);
|
|
-
|
|
|
|
//装载专利号
|
|
//装载专利号
|
|
if (uploadPatentWebDTO.getPatent().getAppNo() != null) {
|
|
if (uploadPatentWebDTO.getPatent().getAppNo() != null) {
|
|
uploadPatentWebDTO.getPatent().setPatentNo(uploadPatentWebDTO.getPatent().getAppNo());
|
|
uploadPatentWebDTO.getPatent().setPatentNo(uploadPatentWebDTO.getPatent().getAppNo());
|
|
@@ -108,7 +108,7 @@ public class ImportSinglePatentService {
|
|
uploadPatentWebDTO.getPatent().setPatentNo(uploadPatentWebDTO.getPatent().getPublicNo());
|
|
uploadPatentWebDTO.getPatent().setPatentNo(uploadPatentWebDTO.getPatent().getPublicNo());
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
-// this.loadWorldPatent(patentZhuLuStr, uploadPatentWebDTO.getPatent());
|
|
|
|
|
|
+ this.loadWorldPatent(patentZhuLuStr, uploadPatentWebDTO.getPatent());
|
|
//装载专利号
|
|
//装载专利号
|
|
if (uploadPatentWebDTO.getPatent().getGrantNo() != null) {
|
|
if (uploadPatentWebDTO.getPatent().getGrantNo() != null) {
|
|
uploadPatentWebDTO.getPatent().setPatentNo(uploadPatentWebDTO.getPatent().getGrantNo());
|
|
uploadPatentWebDTO.getPatent().setPatentNo(uploadPatentWebDTO.getPatent().getGrantNo());
|
|
@@ -124,9 +124,11 @@ public class ImportSinglePatentService {
|
|
|
|
|
|
//装载专利信息
|
|
//装载专利信息
|
|
private void loadPatent(UploadPatentWebDTO uploadPatentWebDTO) {
|
|
private void loadPatent(UploadPatentWebDTO uploadPatentWebDTO) {
|
|
|
|
+
|
|
String country = "";
|
|
String country = "";
|
|
Patent patent = uploadPatentWebDTO.getPatent();
|
|
Patent patent = uploadPatentWebDTO.getPatent();
|
|
StarPatentVO starPatentVO = uploadPatentWebDTO.getStarPatentVO();
|
|
StarPatentVO starPatentVO = uploadPatentWebDTO.getStarPatentVO();
|
|
|
|
+
|
|
//装载专利类型
|
|
//装载专利类型
|
|
Integer patentType = starPatentVO.getPatentType();
|
|
Integer patentType = starPatentVO.getPatentType();
|
|
if (patentType != null) {
|
|
if (patentType != null) {
|
|
@@ -181,6 +183,7 @@ public class ImportSinglePatentService {
|
|
if (starPatentVO.getApplicationDate() != null && !starPatentVO.getApplicationDate().equals("")) {
|
|
if (starPatentVO.getApplicationDate() != null && !starPatentVO.getApplicationDate().equals("")) {
|
|
Date date = DateUtils.strToDate(starPatentVO.getApplicationDate());
|
|
Date date = DateUtils.strToDate(starPatentVO.getApplicationDate());
|
|
patent.setAppDate(date);
|
|
patent.setAppDate(date);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
//装载发明人
|
|
//装载发明人
|
|
@@ -201,7 +204,6 @@ public class ImportSinglePatentService {
|
|
if (starPatentVO.getApplicationNo() != null && !starPatentVO.getApplicationNo().equals("")) {
|
|
if (starPatentVO.getApplicationNo() != null && !starPatentVO.getApplicationNo().equals("")) {
|
|
patent.setAppNo(starPatentVO.getApplicationNo());
|
|
patent.setAppNo(starPatentVO.getApplicationNo());
|
|
country = starPatentVO.getApplicationNo().substring(0, 2);
|
|
country = starPatentVO.getApplicationNo().substring(0, 2);
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
//装载公开号
|
|
//装载公开号
|
|
@@ -213,6 +215,18 @@ public class ImportSinglePatentService {
|
|
patent.setGrantNo(starPatentVO.getPublicAccreditNo());
|
|
patent.setGrantNo(starPatentVO.getPublicAccreditNo());
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if(patent.getAppNo().startsWith("CN")){
|
|
|
|
+ patent.setPatentNo(patent.getAppNo());
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ if(patent.getPublicNo()!=null){
|
|
|
|
+ patent.setPatentNo(patent.getPublicNo());
|
|
|
|
+ }
|
|
|
|
+ else if(patent.getGrantNo()!=null)
|
|
|
|
+ {
|
|
|
|
+ patent.setPatentNo(patent.getGrantNo());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//装载申请人
|
|
//装载申请人
|
|
if (starPatentVO.getApplicantStr() != null && !starPatentVO.getApplicantStr().equals("")) {
|
|
if (starPatentVO.getApplicantStr() != null && !starPatentVO.getApplicantStr().equals("")) {
|
|
List<String> names = Arrays.asList(starPatentVO.getApplicantStr().split(";"));
|
|
List<String> names = Arrays.asList(starPatentVO.getApplicantStr().split(";"));
|
|
@@ -267,6 +281,9 @@ public class ImportSinglePatentService {
|
|
}
|
|
}
|
|
patent.setRightHolder(patentPeople);
|
|
patent.setRightHolder(patentPeople);
|
|
}
|
|
}
|
|
|
|
+ else if(patent.getApplicant()!=null){
|
|
|
|
+ patent.setRightHolder(patent.getApplicant());
|
|
|
|
+ }
|
|
|
|
|
|
//装载法律状态(os_patent表status字段值)
|
|
//装载法律状态(os_patent表status字段值)
|
|
Integer status = starPatentVO.getLG();
|
|
Integer status = starPatentVO.getLG();
|
|
@@ -421,7 +438,9 @@ public class ImportSinglePatentService {
|
|
patentPeople.add(patentPerson);
|
|
patentPeople.add(patentPerson);
|
|
}
|
|
}
|
|
patent.setApplicant(patentPeople);
|
|
patent.setApplicant(patentPeople);
|
|
-
|
|
|
|
|
|
+if(patent.getRightHolder()==null||patent.getRightHolder().size()==0){
|
|
|
|
+ patent.setRightHolder(patent.getApplicant());
|
|
|
|
+}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|