|
@@ -189,6 +189,22 @@ public class PatentStarApiService {
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public String getFormatCondition(String condition) {
|
|
|
|
+ String s = condition.substring(condition.indexOf("=") + 1);
|
|
|
|
+ String s1 = s.replaceAll("[()]", "");
|
|
|
|
+ String[] valueStrs = s1.split("[,,]|(\\r\\n)+|\\r+|\\n+");
|
|
|
|
+ StringBuilder stringBuilder = new StringBuilder();
|
|
|
|
+ for (int i = 0; i < valueStrs.length; i++) {
|
|
|
|
+ final String value = valueStrs[i];
|
|
|
|
+ if (i != valueStrs.length - 1) {
|
|
|
|
+ stringBuilder.append(value).append(",");
|
|
|
|
+ } else {
|
|
|
|
+ stringBuilder.append(value);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return stringBuilder.toString();
|
|
|
|
+ }
|
|
|
|
+
|
|
public List<PatentStarListDTO> getSplitedConditions(PatentStarListDTO patentStarListDTO, int patentNum) throws IOException {
|
|
public List<PatentStarListDTO> getSplitedConditions(PatentStarListDTO patentStarListDTO, int patentNum) throws IOException {
|
|
DateTime nowDate = new DateTime();
|
|
DateTime nowDate = new DateTime();
|
|
DateTime date = DateUtils2.formStrToDateTime("1900-01-01");
|
|
DateTime date = DateUtils2.formStrToDateTime("1900-01-01");
|
|
@@ -855,6 +871,10 @@ public class PatentStarApiService {
|
|
if (item.getLG() != null) {
|
|
if (item.getLG() != null) {
|
|
patentColumnDTO.setSimpleStatus(item.getLG().toString());
|
|
patentColumnDTO.setSimpleStatus(item.getLG().toString());
|
|
}
|
|
}
|
|
|
|
+ //装载专利类型
|
|
|
|
+ if (item.getPatentType() != null) {
|
|
|
|
+ patentColumnDTO.setPatentType(item.getPatentType().toString());
|
|
|
|
+ }
|
|
//装载摘要
|
|
//装载摘要
|
|
List<Text> abstractList = new ArrayList<>();
|
|
List<Text> abstractList = new ArrayList<>();
|
|
Text text = new Text();
|
|
Text text = new Text();
|
|
@@ -944,24 +964,32 @@ public class PatentStarApiService {
|
|
if (item.getApplicantStr() != null && !item.getApplicantStr().trim().equals("")) {
|
|
if (item.getApplicantStr() != null && !item.getApplicantStr().trim().equals("")) {
|
|
List<String> names = Arrays.asList(item.getApplicantStr().split(";"));
|
|
List<String> names = Arrays.asList(item.getApplicantStr().split(";"));
|
|
patentColumnDTO.setApplicant(names);
|
|
patentColumnDTO.setApplicant(names);
|
|
|
|
+ } else {
|
|
|
|
+ patentColumnDTO.setApplicant(new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
|
|
//装载发明人
|
|
//装载发明人
|
|
if (item.getInventorStr() != null && !item.getInventorStr().trim().equals("")) {
|
|
if (item.getInventorStr() != null && !item.getInventorStr().trim().equals("")) {
|
|
List<String> names = Arrays.asList(item.getInventorStr().split(";"));
|
|
List<String> names = Arrays.asList(item.getInventorStr().split(";"));
|
|
patentColumnDTO.setInventor(names);
|
|
patentColumnDTO.setInventor(names);
|
|
|
|
+ } else {
|
|
|
|
+ patentColumnDTO.setInventor(new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
|
|
//装载权利人
|
|
//装载权利人
|
|
if (item.getCurrentApplicantStr() != null && !item.getCurrentApplicantStr().trim().equals("")) {
|
|
if (item.getCurrentApplicantStr() != null && !item.getCurrentApplicantStr().trim().equals("")) {
|
|
List<String> names = Arrays.asList(item.getCurrentApplicantStr().split(";"));
|
|
List<String> names = Arrays.asList(item.getCurrentApplicantStr().split(";"));
|
|
patentColumnDTO.setRightHolder(names);
|
|
patentColumnDTO.setRightHolder(names);
|
|
|
|
+ } else {
|
|
|
|
+ patentColumnDTO.setRightHolder(new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
|
|
//装载代理人
|
|
//装载代理人
|
|
if (item.getAgentStr() != null && !item.getAgentStr().trim().equals("")) {
|
|
if (item.getAgentStr() != null && !item.getAgentStr().trim().equals("")) {
|
|
List<String> names = Arrays.asList(item.getAgentStr().split(";"));
|
|
List<String> names = Arrays.asList(item.getAgentStr().split(";"));
|
|
patentColumnDTO.setAgent(names);
|
|
patentColumnDTO.setAgent(names);
|
|
|
|
+ } else {
|
|
|
|
+ patentColumnDTO.setAgent(new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
|
|
//装载代理机构
|
|
//装载代理机构
|