|
@@ -3,6 +3,7 @@ package cn.cslg.pas.controller;
|
|
|
import cn.cslg.pas.common.core.annotation.Permission;
|
|
|
import cn.cslg.pas.common.core.base.Constants;
|
|
|
import cn.cslg.pas.common.model.dto.PatentDTO;
|
|
|
+import cn.cslg.pas.common.model.dto.PatentMarketDataDTO;
|
|
|
import cn.cslg.pas.common.model.dto.UploadFileDTO;
|
|
|
import cn.cslg.pas.common.utils.*;
|
|
|
import cn.cslg.pas.common.utils.SecurityUtils.LoginUtils;
|
|
@@ -51,8 +52,10 @@ public class PatentController {
|
|
|
private final CacheUtils cacheUtils;
|
|
|
private final ProjectFieldPatentLinkService projectFieldPatentLinkService;
|
|
|
private final LoginUtils loginUtils;
|
|
|
- private final PatentRightService patentRightService;
|
|
|
+ private final PatentRightService patentRightService;
|
|
|
private final FileUtils fileUtils;
|
|
|
+ private final IPatentMarketDataService patentMarketDataService;
|
|
|
+
|
|
|
@GetMapping("/read/total")
|
|
|
@Operation(summary = "专利阅读状态统计")
|
|
|
public String getPatentReadTotal(PatentReadVO params) {
|
|
@@ -203,5 +206,19 @@ public class PatentController {
|
|
|
return fileDTO;
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "查询单篇专利价值曲线")
|
|
|
+ @PostMapping("/showTrend")
|
|
|
+ public String showTrend(@RequestBody PatentMarketDataDTO dto) {
|
|
|
+ List<ProductMarketDataTrendVO> queryResult = patentMarketDataService.showTrend(dto);
|
|
|
+ PatentTrendVO patentTrendVO = new PatentTrendVO();
|
|
|
+ patentTrendVO.setPatentNo(dto.getPatentNo());
|
|
|
+ patentTrendVO.setSaleVOS(queryResult);
|
|
|
+ if (patentTrendVO != null){
|
|
|
+ return Response.success(patentTrendVO);
|
|
|
+ } else {
|
|
|
+ return Response.error("查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|