|
@@ -73,8 +73,8 @@ public class PatentController {
|
|
|
|
|
|
@GetMapping("patentNo")
|
|
|
@Operation(summary = "根据专利号获取专利所有信息")
|
|
|
- public String getPatentIdByPatentNo(String patentNo,Integer projectId) {
|
|
|
- PatentDTO patentDTO =patentService.getPatentDTOById(patentNo,projectId);
|
|
|
+ public String getPatentIdByPatentNo(String patentNo, Integer projectId) {
|
|
|
+ PatentDTO patentDTO = patentService.getPatentDTOById(patentNo, projectId);
|
|
|
return Response.success(patentDTO);
|
|
|
}
|
|
|
|
|
@@ -132,7 +132,7 @@ public class PatentController {
|
|
|
}
|
|
|
|
|
|
@checkAuth(FunId = "/workspace/folder/batchOperation/batchIndexing")
|
|
|
- @Permission(roles = {1,2})
|
|
|
+ @Permission(roles = {1, 2})
|
|
|
@PostMapping("/batch/index")
|
|
|
@Operation(summary = "批量批量专利标引")
|
|
|
public String patentBatchIndex(@RequestBody PatentBatchIndexVO params) {
|
|
@@ -153,7 +153,7 @@ public class PatentController {
|
|
|
}
|
|
|
|
|
|
@checkAuth(FunId = "/workspace/details/indexing")
|
|
|
- @Permission(roles = {1,2})
|
|
|
+ @Permission(roles = {1, 2})
|
|
|
@PostMapping("/index/setting")
|
|
|
@Operation(summary = "修改专利标引")
|
|
|
public String updatePatentIndexSetting(@RequestBody PatentIndexSettingVO params) {
|
|
@@ -170,28 +170,28 @@ public class PatentController {
|
|
|
@GetMapping("right")
|
|
|
@Operation(summary = "根据专利号获得专利的权要")
|
|
|
public String getRightList(String patentNo) {
|
|
|
- List<PatentRight> patentRights =patentRightService.getPatentRightByPatentNo(patentNo);
|
|
|
+ List<PatentRight> patentRights = patentRightService.getPatentRightByPatentNo(patentNo);
|
|
|
return Response.success(patentRights);
|
|
|
}
|
|
|
|
|
|
@GetMapping("getPatentNos")
|
|
|
@Operation(summary = "根据专题库号获得专利号")
|
|
|
public String getPatentNos(Integer projectId) {
|
|
|
- String res =patentService.getPatentNos(projectId);
|
|
|
+ String res = patentService.getPatentNos(projectId);
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
@PostMapping("getPagination")
|
|
|
@Operation(summary = "分页获取专利")
|
|
|
- public String getPagination(@RequestBody PatentVO patentVO){
|
|
|
- return patentService.getPagination(patentVO.getPatentNos(),patentVO.getStartNumber());
|
|
|
+ public String getPagination(@RequestBody PatentVO patentVO) {
|
|
|
+ return patentService.getPagination(patentVO.getPatentNos(), patentVO.getStartNumber());
|
|
|
}
|
|
|
|
|
|
@Operation(summary = "查询专利价值曲线")
|
|
|
@PostMapping("/showTrend")
|
|
|
public String showTrend(@RequestBody PatentMarketDataDTO dto) {
|
|
|
List<PatentTrendVO> queryResult = patentMarketDataService.showTrend(dto);
|
|
|
- if (queryResult != null){
|
|
|
+ if (queryResult != null) {
|
|
|
return Response.success(queryResult);
|
|
|
} else {
|
|
|
return Response.error("查询失败");
|