|
@@ -3,6 +3,9 @@ package cn.cslg.pas.service.patentRightSplit;
|
|
import cn.cslg.pas.common.PatentRightContent;
|
|
import cn.cslg.pas.common.PatentRightContent;
|
|
import cn.cslg.pas.common.model.params.PatentRightParams;
|
|
import cn.cslg.pas.common.model.params.PatentRightParams;
|
|
import cn.cslg.pas.domain.PatentRight;
|
|
import cn.cslg.pas.domain.PatentRight;
|
|
|
|
+import cn.cslg.pas.domain.QuestionRecord;
|
|
|
|
+import cn.cslg.pas.service.upLoadPatent.QuestionRecordService;
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
@@ -16,8 +19,10 @@ import java.util.regex.Pattern;
|
|
* @author chenyu
|
|
* @author chenyu
|
|
* @date 2023/8/30
|
|
* @date 2023/8/30
|
|
*/
|
|
*/
|
|
|
|
+@RequiredArgsConstructor
|
|
@Service
|
|
@Service
|
|
public class PatentRightSplitKRService implements PatentRightSplitService {
|
|
public class PatentRightSplitKRService implements PatentRightSplitService {
|
|
|
|
+ private final QuestionRecordService questionRecordService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public List<PatentRightContent> formatPatentRight(PatentRightParams params) {
|
|
public List<PatentRightContent> formatPatentRight(PatentRightParams params) {
|
|
@@ -126,8 +131,15 @@ public class PatentRightSplitKRService implements PatentRightSplitService {
|
|
return patentRightContents;
|
|
return patentRightContents;
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
|
+ //1.记录当前拆分出错专利,记住问题记录表"question_records"
|
|
|
|
+ QuestionRecord questionRecord = new QuestionRecord()
|
|
|
|
+ .setPatentNo(params.getPatentNo())
|
|
|
|
+ .setRemark("查询权要树时拆分出错")
|
|
|
|
+ .setCell(-1);
|
|
|
|
+ questionRecordService.save(questionRecord);
|
|
|
|
+ //2.返回原文
|
|
ArrayList<PatentRightContent> patentRightContents = new ArrayList<>();
|
|
ArrayList<PatentRightContent> patentRightContents = new ArrayList<>();
|
|
- patentRightContents.add(new PatentRightContent().setContent(params.getContent()));
|
|
|
|
|
|
+ patentRightContents.add(new PatentRightContent().setSort(-1).setType(-1).setContent(params.getContent()));
|
|
return patentRightContents;
|
|
return patentRightContents;
|
|
}
|
|
}
|
|
|
|
|