|
@@ -1032,34 +1032,36 @@ public class PatentStarApiService {
|
|
|
QueryExternalFamilyDTO familyDTO = JSONObject.parseObject(family, QueryExternalFamilyDTO.class);
|
|
|
String familyInfos = familyDTO.getFamilyinfo();
|
|
|
List<String> publicNos = new ArrayList<>();
|
|
|
- if (StringUtils.isNotEmpty(familyInfos) && familyInfos.equals("{}")) {
|
|
|
+ if (StringUtils.isNotEmpty(familyInfos) && !familyInfos.equals("{}")) {
|
|
|
publicNos = Arrays.asList(familyInfos.split(";"));
|
|
|
}
|
|
|
|
|
|
- String pubNo = "";
|
|
|
+ List<PatentColumnDTO> list = new ArrayList<>();
|
|
|
if (!CollectionUtils.isEmpty(publicNos)) {
|
|
|
- int count = publicNos.size() - 1;
|
|
|
- for (int i = 0; i < publicNos.size(); i++) {
|
|
|
- String s = publicNos.get(i);
|
|
|
- if (i == count) {
|
|
|
- pubNo = pubNo + s;
|
|
|
+ for (String publicNo : publicNos) {
|
|
|
+ PatentStarListDTO patentStarListDTO = new PatentStarListDTO();
|
|
|
+ String condition = "PN=" + publicNo;
|
|
|
+ patentStarListDTO.setCurrentQuery(condition);
|
|
|
+ String index = publicNo.substring(0, 2);
|
|
|
+ if (index.equals("CN")) {
|
|
|
+ patentStarListDTO.setDBType("CN");
|
|
|
} else {
|
|
|
- pubNo = pubNo + s + " " + "OR" + " ";
|
|
|
+ patentStarListDTO.setDBType("WD");
|
|
|
}
|
|
|
+ patentStarListDTO.setOrderBy("AD");
|
|
|
+ patentStarListDTO.setOrderByType("DESC");
|
|
|
+ patentStarListDTO.setPageNum(vo.getPageNum());
|
|
|
+ patentStarListDTO.setRowCount(vo.getPageSize());
|
|
|
+ records = this.patentStarSearchLocal(patentStarListDTO);
|
|
|
+ list.addAll((Collection<? extends PatentColumnDTO>) records.getData());
|
|
|
}
|
|
|
}
|
|
|
- if (StringUtils.isNotEmpty(pubNo)) {
|
|
|
- PatentStarListDTO patentStarListDTO = new PatentStarListDTO();
|
|
|
- String condition = "PN=" + "(" + pubNo + ")";
|
|
|
- patentStarListDTO.setCurrentQuery(condition);
|
|
|
- patentStarListDTO.setDBType("CN");
|
|
|
- patentStarListDTO.setOrderBy("AD");
|
|
|
- patentStarListDTO.setOrderByType("DESC");
|
|
|
- patentStarListDTO.setPageNum(vo.getPageNum());
|
|
|
- patentStarListDTO.setRowCount(vo.getPageSize());
|
|
|
- records = this.patentStarSearchLocal(patentStarListDTO);
|
|
|
- }
|
|
|
- return records;
|
|
|
+ Records record = new Records();
|
|
|
+ record.setCurrent(vo.getPageNum().longValue());
|
|
|
+ record.setSize(vo.getPageSize().longValue());
|
|
|
+ record.setData(list);
|
|
|
+ record.setTotal(Long.valueOf(String.valueOf(list.size())));
|
|
|
+ return record;
|
|
|
}
|
|
|
|
|
|
/**
|