|
@@ -59,6 +59,7 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private PatentStarApiService patentStarApiService;
|
|
private PatentStarApiService patentStarApiService;
|
|
|
|
+
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public List<PatentRightVo> splitPatentFeature(SplitVO splitVO) throws IOException {
|
|
public List<PatentRightVo> splitPatentFeature(SplitVO splitVO) throws IOException {
|
|
String patentNo = splitVO.getPatentNo();
|
|
String patentNo = splitVO.getPatentNo();
|
|
@@ -81,7 +82,7 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
|
|
|
|
//查询拆分下的权要
|
|
//查询拆分下的权要
|
|
List<RePatentClaim> patentRights = this.getRightListByNo(patentNo);
|
|
List<RePatentClaim> patentRights = this.getRightListByNo(patentNo);
|
|
- if(patentRights.size()==0){
|
|
|
|
|
|
+ if (patentRights.size() == 0) {
|
|
return new ArrayList<>();
|
|
return new ArrayList<>();
|
|
}
|
|
}
|
|
LambdaQueryWrapper<PatentSplitMessage> splitWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<PatentSplitMessage> splitWrapper = new LambdaQueryWrapper<>();
|
|
@@ -198,21 +199,21 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
}
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
- public List<RePatentClaim> getRightListByNo(String patentNo,String appNo) throws IOException {
|
|
|
|
|
|
+ public List<RePatentClaim> getRightListByNo(String patentNo, String appNo) throws IOException {
|
|
//从pas获得拆分后的权要
|
|
//从pas获得拆分后的权要
|
|
SelectClaimDTO selectClaimDTO = null;
|
|
SelectClaimDTO selectClaimDTO = null;
|
|
- String patentRight ="";
|
|
|
|
- try {if(appNo!=null) {
|
|
|
|
- selectClaimDTO = patentStarApiService.getOrginCalim(appNo);
|
|
|
|
- if(selectClaimDTO!=null&&selectClaimDTO.getClaimContent()!=null&&selectClaimDTO.getClaimContent().size()!=0){
|
|
|
|
- patentRight=selectClaimDTO.getClaimContent().get(0).getTextContent();
|
|
|
|
|
|
+ String patentRight = "";
|
|
|
|
+ try {
|
|
|
|
+ if (appNo != null) {
|
|
|
|
+ selectClaimDTO = patentStarApiService.getOrginCalim(appNo);
|
|
|
|
+ if (selectClaimDTO != null && selectClaimDTO.getClaimContent() != null && selectClaimDTO.getClaimContent().size() != 0) {
|
|
|
|
+ patentRight = selectClaimDTO.getClaimContent().get(0).getTextContent();
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ } else if (patentNo != null) {
|
|
|
|
+ selectClaimDTO = esService.selectClaim(patentNo);
|
|
|
|
+ patentRight = selectClaimDTO.getClaim();
|
|
}
|
|
}
|
|
- }
|
|
|
|
- else if(patentNo!=null){
|
|
|
|
- selectClaimDTO = esService.selectClaim(patentNo);
|
|
|
|
- patentRight =selectClaimDTO.getClaim();
|
|
|
|
- }
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new XiaoShiException("未查询到权要");
|
|
throw new XiaoShiException("未查询到权要");
|
|
@@ -265,9 +266,9 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public List<PatentRightTree> getPatentRightTree(String patentNo,String appNo) {
|
|
|
|
|
|
+ public List<PatentRightTree> getPatentRightTree(String patentNo, String appNo) {
|
|
try {
|
|
try {
|
|
- List<RePatentClaim> patentRights = this.getRightListByNo(patentNo,appNo);
|
|
|
|
|
|
+ List<RePatentClaim> patentRights = this.getRightListByNo(patentNo, appNo);
|
|
|
|
|
|
List<PatentRightTree> treeNodeList = new ArrayList<>();
|
|
List<PatentRightTree> treeNodeList = new ArrayList<>();
|
|
//装载权要原文
|
|
//装载权要原文
|
|
@@ -490,17 +491,21 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
splitWrapper.eq(PatentSplitMessage::getProjectId, projectId);
|
|
splitWrapper.eq(PatentSplitMessage::getProjectId, projectId);
|
|
|
|
|
|
PatentSplitMessage patentSplitMessage = patentSplitMessageService.getOne(splitWrapper, false);
|
|
PatentSplitMessage patentSplitMessage = patentSplitMessageService.getOne(splitWrapper, false);
|
|
-
|
|
|
|
|
|
+ List<Feature> allFeatures = new ArrayList<>();
|
|
|
|
+ if (patentSplitMessage == null) {
|
|
|
|
+ return allFeatures;
|
|
|
|
+ }
|
|
LambdaQueryWrapper<Feature> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<Feature> wrapper = new LambdaQueryWrapper<>();
|
|
wrapper.eq(Feature::getProjectId, projectId)
|
|
wrapper.eq(Feature::getProjectId, projectId)
|
|
.eq(Feature::getPatentNo, patentNo)
|
|
.eq(Feature::getPatentNo, patentNo)
|
|
.eq(Feature::getSplitMessageId, patentSplitMessage.getId());
|
|
.eq(Feature::getSplitMessageId, patentSplitMessage.getId());
|
|
- List<Feature> allFeatures = this.list(wrapper);
|
|
|
|
|
|
+ allFeatures = this.list(wrapper);
|
|
return allFeatures;
|
|
return allFeatures;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 保存特征
|
|
* 保存特征
|
|
|
|
+ *
|
|
* @param updateFeatureDTO
|
|
* @param updateFeatureDTO
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -529,13 +534,14 @@ public class FeatureService extends ServiceImpl<FeatureMapper, Feature> {
|
|
if (patentSplitMessage == null) {
|
|
if (patentSplitMessage == null) {
|
|
throw new XiaoShiException("未进行拆分过");
|
|
throw new XiaoShiException("未进行拆分过");
|
|
}
|
|
}
|
|
- List<Integer> ids = this.saveFeatures(features, patentSplitMessage.getId(), projectId);
|
|
|
|
|
|
+ List<Integer> ids = this.saveFeatures(features, patentSplitMessage.getId(), projectId);
|
|
return ids;
|
|
return ids;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* 批量添加特征
|
|
* 批量添加特征
|
|
|
|
+ *
|
|
* @param features
|
|
* @param features
|
|
* @param splitMessageId
|
|
* @param splitMessageId
|
|
* @param projectId
|
|
* @param projectId
|