|
@@ -515,13 +515,13 @@ public class PatentStarApiService {
|
|
|
List<String> reClaims = new ArrayList<>();
|
|
|
element.forEach(item -> {
|
|
|
String claim = item.getText();
|
|
|
- claim = claim.replaceAll("\r\n|\r|\n| ", "");
|
|
|
+ claim = claim.replaceAll("\r\n|\r|\n| ", "");
|
|
|
reClaims.add(claim);
|
|
|
|
|
|
});
|
|
|
String reClaim = "";
|
|
|
if (reClaims.size() != 0) {
|
|
|
- reClaim = cn.cslg.pas.common.utils.StringUtils.join(reClaims, "\r\n");
|
|
|
+ reClaim = cn.cslg.pas.common.utils.StringUtils.join(reClaims, "");
|
|
|
}
|
|
|
return reClaim;
|
|
|
}
|
|
@@ -935,8 +935,8 @@ public class PatentStarApiService {
|
|
|
}
|
|
|
|
|
|
//装载代理机构
|
|
|
- if (item.getAgencyStr() != null && !item.getAgencyStr() .trim().equals("")) {
|
|
|
- patentColumnDTO.setAgency(item.getAgencyStr() );
|
|
|
+ if (item.getAgencyStr() != null && !item.getAgencyStr().trim().equals("")) {
|
|
|
+ patentColumnDTO.setAgency(item.getAgencyStr());
|
|
|
}
|
|
|
|
|
|
patentColumnDTOS.add(patentColumnDTO);
|
|
@@ -948,6 +948,7 @@ public class PatentStarApiService {
|
|
|
|
|
|
/**
|
|
|
* 根据专利号查询外部权利要求
|
|
|
+ *
|
|
|
* @param appNo
|
|
|
* @return
|
|
|
* @throws IOException
|
|
@@ -964,6 +965,9 @@ public class PatentStarApiService {
|
|
|
try {
|
|
|
String fullText = this.getExternalClaim(cnFullXmlApi);
|
|
|
Text pubText = new Text();
|
|
|
+ if (fullText != null && !fullText.trim().equals("")) {
|
|
|
+ fullText = PatentRightUtils.getFormatClaim(fullText, "CN");
|
|
|
+ }
|
|
|
pubText.setTextContent(fullText);
|
|
|
pubText.setIfOrigin(true);
|
|
|
claimList.add(pubText);
|
|
@@ -979,6 +983,7 @@ public class PatentStarApiService {
|
|
|
|
|
|
/**
|
|
|
* 根据专利号查询外部权利要求
|
|
|
+ *
|
|
|
* @param vo
|
|
|
* @return
|
|
|
* @throws IOException
|
|
@@ -1007,6 +1012,7 @@ public class PatentStarApiService {
|
|
|
|
|
|
/**
|
|
|
* 查询外部专利同族专利
|
|
|
+ *
|
|
|
* @param vo
|
|
|
* @return
|
|
|
* @throws IOException
|
|
@@ -1036,7 +1042,7 @@ public class PatentStarApiService {
|
|
|
}
|
|
|
if (StringUtils.isNotEmpty(pubNo)) {
|
|
|
PatentStarListDTO patentStarListDTO = new PatentStarListDTO();
|
|
|
- String condition = "PN=" + "(" + pubNo + ")";
|
|
|
+ String condition = "PN=" + "(" + pubNo + ")";
|
|
|
patentStarListDTO.setCurrentQuery(condition);
|
|
|
patentStarListDTO.setDBType("CN");
|
|
|
patentStarListDTO.setOrderBy("AD");
|
|
@@ -1050,6 +1056,7 @@ public class PatentStarApiService {
|
|
|
|
|
|
/**
|
|
|
* 获取公开说明书
|
|
|
+ *
|
|
|
* @param appNo
|
|
|
* @return
|
|
|
*/
|
|
@@ -1154,6 +1161,7 @@ public class PatentStarApiService {
|
|
|
|
|
|
/**
|
|
|
* 获取附图
|
|
|
+ *
|
|
|
* @param appNo
|
|
|
* @return
|
|
|
*/
|
|
@@ -1173,6 +1181,7 @@ public class PatentStarApiService {
|
|
|
|
|
|
/**
|
|
|
* 获取摘要附图
|
|
|
+ *
|
|
|
* @param appNo
|
|
|
* @return
|
|
|
*/
|
|
@@ -1215,4 +1224,30 @@ public class PatentStarApiService {
|
|
|
infoDTO.setLegalEvents(legalEvents);
|
|
|
return infoDTO;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ public SelectClaimDTO getOrginCalim(String appNo) throws IOException {
|
|
|
+ List<Text> claimList = new ArrayList<>();
|
|
|
+ //获取公开说明书
|
|
|
+ String cnFullXmlApi = null;
|
|
|
+ try {
|
|
|
+ cnFullXmlApi = this.getCnFullXmlApi(appNo);
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ try {
|
|
|
+ String fullText = this.getExternalClaim(cnFullXmlApi);
|
|
|
+ Text pubText = new Text();
|
|
|
+ pubText.setTextContent(fullText);
|
|
|
+ pubText.setIfOrigin(true);
|
|
|
+ claimList.add(pubText);
|
|
|
+ } catch (DocumentException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ SelectClaimDTO dto = new SelectClaimDTO();
|
|
|
+ if (!CollectionUtils.isEmpty(claimList)) {
|
|
|
+ dto.setClaimContent(claimList);
|
|
|
+ }
|
|
|
+ return dto;
|
|
|
+ }
|
|
|
}
|