PowerConsumptionAnalysisController.java
4.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package com.skua.modules.equipment.controller;
import com.skua.core.api.vo.Result;
import com.skua.core.aspect.annotation.AutoLog;
import com.skua.modules.equipment.service.IPowerConsumptionAnalysisService;
import com.skua.modules.equipment.vo.AnysisParamsVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@Slf4j
@Api(tags = "电耗分析")
@RestController
@RequestMapping("/power/consumption/analysis")
public class PowerConsumptionAnalysisController {
@Autowired
private IPowerConsumptionAnalysisService powerConsumptionAnalysisService;
@AutoLog(value = "数据展示(电耗分析)")
@ApiOperation(value = "数据展示(电耗分析)", notes = "数据展示(电耗分析)")
@RequestMapping(value = "/data/display", method = RequestMethod.GET)
public Result<Map<String, Object>> dataDisplay(AnysisParamsVO anysisParamsVO) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = powerConsumptionAnalysisService.dataDisplay(anysisParamsVO);
result.setResult(data);
result.setSuccess(true);
return result;
}
@AutoLog(value = "总电耗趋势")
@ApiOperation(value = "电耗趋势", notes = "电耗趋势")
@RequestMapping(value = "/power/consumption/trend", method = RequestMethod.GET)
public Result<Map<String, Object>> powerConsumptionTrend(AnysisParamsVO anysisParamsVO) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = powerConsumptionAnalysisService.powerConsumptionTrend(anysisParamsVO);
result.setResult(data);
result.setSuccess(true);
return result;
}
@AutoLog(value = "吨水电耗趋势")
@ApiOperation(value = "吨水电耗趋势", notes = "吨水电耗趋势")
@RequestMapping(value = "/ton/of/water/trend", method = RequestMethod.GET)
public Result<Map<String, Object>> tonOfWaterTrend(AnysisParamsVO anysisParamsVO) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterTrend(anysisParamsVO);
result.setResult(data);
result.setSuccess(true);
return result;
}
@AutoLog(value = "吨水电耗与负荷率对比")
@ApiOperation(value = "吨水电耗与负荷率对比", notes = "吨水电耗与负荷率对比")
@RequestMapping(value = "/tonOfWaterAndLoadRate", method = RequestMethod.GET)
public Result<Map<String, Object>> tonOfWaterAndLoadRate(AnysisParamsVO anysisParamsVO) throws Exception{
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterAndLoadRate(anysisParamsVO);
result.setResult(data);
result.setSuccess(true);
return result;
}
@AutoLog(value = "吨水电耗与污染物浓度")
@ApiOperation(value = "吨水电耗与污染物浓度", notes = "吨水电耗与污染物浓度")
@RequestMapping(value = "/tonOfWaterAndPollutantConcentration", method = RequestMethod.GET)
public Result<Map<String, Object>> tonOfWaterAndPollutantConcentration(AnysisParamsVO anysisParamsVO) throws Exception{
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterAndPollutantConcentration(anysisParamsVO);
result.setResult(data);
result.setSuccess(true);
return result;
}
@AutoLog(value = "吨水电耗与污染物去除率对比")
@ApiOperation(value = "吨水电耗与污染物去除率对比", notes = "吨水电耗与污染物去除率对比")
@RequestMapping(value = "/tonOfWaterAndPollutantRemovalRate", method = RequestMethod.GET)
public Result<Map<String, Object>> tonOfWaterAndPollutantRemovalRate(AnysisParamsVO anysisParamsVO) throws Exception{
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterAndPollutantRemovalRate(anysisParamsVO);
result.setResult(data);
result.setSuccess(true);
return result;
}
}