|
@@ -121,7 +121,7 @@ public class PatentStarApiService {
|
|
|
records.setRetrieveRecordId(retrieveRecord.getId());
|
|
|
records.setCurrent(Long.parseLong(map.get("current").toString()));
|
|
|
records.setSize(Long.parseLong(map.get("size").toString()));
|
|
|
- records.setData(this.loadPatent(starPatentVOS));
|
|
|
+ records.setData(this.loadPatent(starPatentVOS,patentStarListDTO.getDBType()));
|
|
|
records.setTotal(Long.parseLong(map.get("total").toString()));
|
|
|
return records;
|
|
|
}
|
|
@@ -873,7 +873,7 @@ public class PatentStarApiService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private List<PatentColumnDTO> loadPatent(List<StarPatentVO> starPatentVOS) {
|
|
|
+ private List<PatentColumnDTO> loadPatent(List<StarPatentVO> starPatentVOS,String dbType) {
|
|
|
|
|
|
List<PatentColumnDTO> patentColumnDTOS = new ArrayList<>();
|
|
|
starPatentVOS.forEach(item -> {
|
|
@@ -882,6 +882,14 @@ public class PatentStarApiService {
|
|
|
Patent patent = new Patent();
|
|
|
uploadPatentWebDTO.setPatent(patent);
|
|
|
webVOTransformService.loadPatent(uploadPatentWebDTO,false);
|
|
|
+ if(dbType!=null&&dbType.equals("CN"))
|
|
|
+ {
|
|
|
+ webVOTransformService.loadCNPatentNo(uploadPatentWebDTO.getPatent());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ webVOTransformService.loadWorldPatentNo(uploadPatentWebDTO.getPatent());
|
|
|
+
|
|
|
+ }
|
|
|
PatentColumnDTO patentColumnDTO = new PatentColumnDTO();
|
|
|
BeanUtils.copyProperties(patent,patentColumnDTO);
|
|
|
//装载权利要求
|
|
@@ -925,6 +933,7 @@ public class PatentStarApiService {
|
|
|
} else {
|
|
|
patentColumnDTO.setRightHolder(new ArrayList<>());
|
|
|
}
|
|
|
+ patentColumnDTOS.add(patentColumnDTO);
|
|
|
});
|
|
|
|
|
|
return patentColumnDTOS;
|