|
|
@@ -25,6 +25,7 @@ import io.swagger.annotations.Api;
|
|
25
|
25
|
import io.swagger.annotations.ApiOperation;
|
|
26
|
26
|
import lombok.extern.slf4j.Slf4j;
|
|
27
|
27
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
28
|
+import org.springframework.cache.annotation.Cacheable;
|
|
28
|
29
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
29
|
30
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
30
|
31
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -68,6 +69,11 @@ public class PerformanceDimensionController {
|
|
68
|
69
|
* 基于时间维度的绩效统计查询
|
|
69
|
70
|
* 返回时间维度组织的数据结构:时间 -> [对象名称, 数值] 列表
|
|
70
|
71
|
*/
|
|
|
72
|
+ @Cacheable(
|
|
|
73
|
+ value = "statistics_data",
|
|
|
74
|
+ keyGenerator = "statisticsKeyGenerator",
|
|
|
75
|
+ unless = "!T(com.sundot.airport.common.cache.StatisticsCacheConditionUtil).isSuccess(#result) ||T(com.sundot.airport.common.cache.StatisticsCacheConditionUtil).isEmptyData(#result)"
|
|
|
76
|
+ )
|
|
71
|
77
|
@ApiOperation("基于时间维度的绩效统计查询趋势图")
|
|
72
|
78
|
@PostMapping("/calculate-by-time")
|
|
73
|
79
|
public AjaxResult calculatePerformanceByTime(@RequestBody PerformanceDimensionParamDto param) {
|
|
|
@@ -96,7 +102,11 @@ public class PerformanceDimensionController {
|
|
96
|
102
|
}
|
|
97
|
103
|
}
|
|
98
|
104
|
|
|
99
|
|
-
|
|
|
105
|
+ @Cacheable(
|
|
|
106
|
+ value = "statistics_data",
|
|
|
107
|
+ keyGenerator = "statisticsKeyGenerator",
|
|
|
108
|
+ unless = "!T(com.sundot.airport.common.cache.StatisticsCacheConditionUtil).isSuccess(#result) ||T(com.sundot.airport.common.cache.StatisticsCacheConditionUtil).isEmptyData(#result)"
|
|
|
109
|
+ )
|
|
100
|
110
|
@ApiOperation("基于时间维度的绩效统计查询列表")
|
|
101
|
111
|
@PostMapping("/calculate-by-time-list")
|
|
102
|
112
|
public AjaxResult calculatePerformanceByTimeList(@RequestBody PerformanceDimensionParamDto param) {
|