|
@@ -101,6 +101,14 @@ public class PatentRightUtils {
|
|
}
|
|
}
|
|
|
|
|
|
private static void getChinaRights(String content, String patentNo, ArrayList<RePatentClaim> patentRights) {
|
|
private static void getChinaRights(String content, String patentNo, ArrayList<RePatentClaim> patentRights) {
|
|
|
|
+// if (!content.equals("") && content.contains("[1]")) {
|
|
|
|
+// content = content.substring(content.indexOf("["));
|
|
|
|
+// } else if (!content.equals("") && content.contains("1")) {
|
|
|
|
+// content = content.substring(content.indexOf("1"));
|
|
|
|
+// }
|
|
|
|
+ if (!content.equals("") && content.contains("1.") && !content.contains("[权利要求1]")) {
|
|
|
|
+ content = content.substring(content.indexOf("1."));
|
|
|
|
+ }
|
|
String regex;
|
|
String regex;
|
|
if (content.contains("@2")) {
|
|
if (content.contains("@2")) {
|
|
regex = "@[0-9]+";
|
|
regex = "@[0-9]+";
|
|
@@ -176,17 +184,28 @@ public class PatentRightUtils {
|
|
.setSort(i)
|
|
.setSort(i)
|
|
.setParentSort((Integer.parseInt(parentNum) - 1) + "");
|
|
.setParentSort((Integer.parseInt(parentNum) - 1) + "");
|
|
patentRights.add(patentRight);
|
|
patentRights.add(patentRight);
|
|
|
|
+ } else {
|
|
|
|
+ RePatentClaim patentRight = new RePatentClaim()
|
|
|
|
+ .setPatentNo(patentNo)
|
|
|
|
+ .setType(1)
|
|
|
|
+ .setContent(strs[i])
|
|
|
|
+ .setSort(i)
|
|
|
|
+ .setParentSort("-1");
|
|
|
|
+
|
|
|
|
+ patentRights.add(patentRight);
|
|
}
|
|
}
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- RePatentClaim patentRight = new RePatentClaim()
|
|
|
|
- .setPatentNo(patentNo)
|
|
|
|
- .setType(1)
|
|
|
|
- .setContent(strs[i])
|
|
|
|
- .setSort(i)
|
|
|
|
- .setParentSort("-1");
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(strs[i])) {
|
|
|
|
+ RePatentClaim patentRight = new RePatentClaim()
|
|
|
|
+ .setPatentNo(patentNo)
|
|
|
|
+ .setType(1)
|
|
|
|
+ .setContent(strs[i])
|
|
|
|
+ .setSort(i)
|
|
|
|
+ .setParentSort("-1");
|
|
|
|
|
|
- patentRights.add(patentRight);
|
|
|
|
|
|
+ patentRights.add(patentRight);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|