|
@@ -874,7 +874,20 @@ public class FTOCompareRecordService extends ServiceImpl<FTOCompareRecordMapper,
|
|
|
Long current = comparedPatentDTO.getCurrent();
|
|
|
Long size = comparedPatentDTO.getSize();
|
|
|
//根据projectId 查询出对比过的专利号
|
|
|
- List<String> patentNos = this.getBaseMapper().getComparedPatents(projectId, compareResult);
|
|
|
+ List<String> patentNos =new ArrayList<>();
|
|
|
+ //根据projectId 查询报告
|
|
|
+ LambdaQueryWrapper<ReportProject> queryWrapper =new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(ReportProject::getProjectId,projectId);
|
|
|
+ ReportProject reportProject =reportProjectService.getOne(queryWrapper,false);
|
|
|
+ if(reportProject==null){
|
|
|
+ throw new XiaoShiException("报告不存在");
|
|
|
+ }
|
|
|
+ if(reportProject.getReportType().equals(4)){
|
|
|
+ patentNos.add(reportProject.getSignPatentNo());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ patentNos = this.getBaseMapper().getComparedPatents(projectId, compareResult);
|
|
|
+ }
|
|
|
List<ComparedPatentVO> comparedPatentVOS = new ArrayList<>();
|
|
|
//根据专利号查询专利信息
|
|
|
List<Patent> patents = new ArrayList<>();
|
|
@@ -887,6 +900,10 @@ public class FTOCompareRecordService extends ServiceImpl<FTOCompareRecordMapper,
|
|
|
patents.forEach(item -> {
|
|
|
ComparedPatentVO comparedPatentVO = new ComparedPatentVO();
|
|
|
BeanUtils.copyProperties(item, comparedPatentVO);
|
|
|
+ if(comparedPatentVO.getGrantNo()==null){
|
|
|
+ comparedPatentVO.setGrantNo(item.getPublicNo());
|
|
|
+ comparedPatentVO.setGrantDate(item.getPublicDate());
|
|
|
+ }
|
|
|
Map<String, Object> map = maps.stream().filter(i -> i.get("id").toString().equals(item.getInpadocFamilyId())).findFirst().orElse(null);
|
|
|
if (map != null) {
|
|
|
comparedPatentVO.setInpadocFamilyNos((List<String>) map.get("nos"));
|