|
@@ -44,8 +44,9 @@ public class PatentController {
|
|
|
@Autowired
|
|
|
private MergePersonService mergePersonService;
|
|
|
|
|
|
-@Autowired
|
|
|
-private EsService esService;
|
|
|
+ @Autowired
|
|
|
+ private EsService esService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private PatentStarApiService patentStarApiService;
|
|
|
|
|
@@ -89,10 +90,10 @@ private EsService esService;
|
|
|
@GetMapping("/queryPatentByNo")
|
|
|
public Response queryPatentByNo(String patentNo) throws Exception {
|
|
|
PatentWithIdVO patentWithIdVO = esService.getIdByPatentNo(patentNo);
|
|
|
- if(patentWithIdVO==null){
|
|
|
+ if (patentWithIdVO == null) {
|
|
|
return Response.success(null);
|
|
|
}
|
|
|
- return Response.success(patentWithIdVO.getPatent());
|
|
|
+ return Response.success(patentWithIdVO.getPatent());
|
|
|
|
|
|
}
|
|
|
|
|
@@ -100,12 +101,13 @@ private EsService esService;
|
|
|
@GetMapping("/queryPatentByNoFromWeb")
|
|
|
public Response queryPatentByNoFromWeb(String patentNo) throws Exception {
|
|
|
StarPatentVO starPatentVO = patentStarApiService.getPatentByNo(patentNo);
|
|
|
- if(starPatentVO==null){
|
|
|
+ if (starPatentVO == null) {
|
|
|
return Response.success(null);
|
|
|
}
|
|
|
return Response.success(starPatentVO);
|
|
|
|
|
|
}
|
|
|
+
|
|
|
//------------------------合并-----------------------------
|
|
|
@Operation(summary = "专利列表上新增发明人/权利人/申请人合并")
|
|
|
@PostMapping("/mergePerson")
|