|
@@ -53,7 +53,6 @@ public class PatentController {
|
|
|
private final ProjectFieldPatentLinkService projectFieldPatentLinkService;
|
|
|
private final LoginUtils loginUtils;
|
|
|
private final PatentRightService patentRightService;
|
|
|
- private final FileUtils fileUtils;
|
|
|
private final IPatentMarketDataService patentMarketDataService;
|
|
|
|
|
|
@GetMapping("/read/total")
|
|
@@ -88,20 +87,17 @@ public class PatentController {
|
|
|
PatentDTO patentDTO =patentService.getPatentDTOById(patentNo,projectId);
|
|
|
return Response.success(patentDTO);
|
|
|
}
|
|
|
-
|
|
|
@GetMapping("id")
|
|
|
@Operation(summary = "根据专利号获取专利")
|
|
|
public String getPatentByPatentNo(String patentNo) {
|
|
|
Patent patent = patentService.getByPatentNo(patentNo);
|
|
|
return Response.success(patent);
|
|
|
}
|
|
|
-
|
|
|
@PostMapping("ids")
|
|
|
@Operation(summary = "根据范围获取专利ID")
|
|
|
public String getPatentListIds(@RequestBody PatentVO params) {
|
|
|
return Response.success(patentService.getPatentListIds(params));
|
|
|
}
|
|
|
-
|
|
|
@checkAuth(FunId = "/workspace/folder/exportPatent")
|
|
|
@PostMapping("export")
|
|
|
@Operation(summary = "导出专利")
|
|
@@ -134,7 +130,6 @@ public class PatentController {
|
|
|
return Response.success(patentService.getPatentQuerySourcePageList(params));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@PostMapping("/save/select")
|
|
|
@Operation(summary = "保存选择的专利")
|
|
|
public String saveSelectPatentIds(@RequestBody PatentVO params) {
|
|
@@ -197,14 +192,6 @@ public class PatentController {
|
|
|
public String getPagination(@RequestBody PatentVO patentVO){
|
|
|
return patentService.getPagination(patentVO.getPatentNos(),patentVO.getStartNumber());
|
|
|
}
|
|
|
- @GetMapping("test")
|
|
|
- @Operation(summary = "141541")
|
|
|
- public UploadFileDTO test(String url) throws Exception {
|
|
|
- File pdfFile= FileUtils.getFile(url);
|
|
|
- MultipartFile file = FileUtils.fileToMultipartFile(pdfFile);
|
|
|
- UploadFileDTO fileDTO = fileUtils.uploadFile(file);
|
|
|
- return fileDTO;
|
|
|
- }
|
|
|
|
|
|
@Operation(summary = "查询专利价值曲线")
|
|
|
@PostMapping("/showTrend")
|