WaterCountAnalysisNewController.java
4.7 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package com.skua.modules.dataAnalysis.controller;
import com.skua.core.api.vo.Result;
import com.skua.core.aspect.annotation.AutoLog;
import com.skua.modules.dataAnalysis.service.WaterCountAnalysisNewService;
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.List;
import java.util.Map;
/**
* @ClassName waterAnalysisController
* @Description 新水量分析
* @Version 1.0
*/
@Slf4j
@Api(tags = "新水量分析")
@RestController
@RequestMapping("/analysisNew/waterCount")
public class WaterCountAnalysisNewController {
@Autowired
private WaterCountAnalysisNewService waterCountAnalysisNewService;
/**
* 查询年度总处理水量柱状图
*
* @return
*/
@AutoLog(value = "查询年度总处理水量柱状图")
@ApiOperation(value = "查询年度总处理水量柱状图", notes = "查询年度总处理水量柱状图")
@RequestMapping(value = "/queryTotalSLData", method = RequestMethod.GET)
public Result<Map<String, Object>> queryTotalSLData(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterCountAnalysisNewService.queryTotalSLData(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询年度总处理水量列表
*
* @return
*/
@AutoLog(value = "查询年度总处理水量列表")
@ApiOperation(value = "查询年度总处理水量列表", notes = "查询年度总处理水量列表")
@RequestMapping(value = "/queryTotalSLList", method = RequestMethod.GET)
public Result<Map<String, Object>> queryTotalSLList(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterCountAnalysisNewService.queryTotalSLList(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询处理水量列表
*
* @return
*/
@AutoLog(value = "查询处理水量详情列表")
@ApiOperation(value = "查询处理水量详情列表", notes = "查询处理水量详情列表")
@RequestMapping(value = "/querySLDeatailList", method = RequestMethod.GET)
public Result<Map<String, Object>> querySLDeatailList(String startTime,String endTime) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterCountAnalysisNewService.querySLDeatailList(startTime,endTime);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询处理水量波动情况分析
*
* @return
*/
@AutoLog(value = "查询处理水量波动情况分析")
@ApiOperation(value = "查询处理水量波动情况分析", notes = "查询处理水量波动情况分析")
@RequestMapping(value = "/querySLAnalysis", method = RequestMethod.GET)
public Result<Map<String, Object>> querySLAnalysis(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterCountAnalysisNewService.querySLAnalysis(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询运行负荷率分析
*
* @return
*/
@AutoLog(value = "查询运行负荷率分析")
@ApiOperation(value = "查询运行负荷率分析", notes = "查询运行负荷率分析")
@RequestMapping(value = "/querySLFHLAnalysis", method = RequestMethod.GET)
public Result<Map<String, Object>> querySLFHLAnalysis(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterCountAnalysisNewService.querySLFHLAnalysis(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询运行负荷率分析
*
* @return
*/
@AutoLog(value = "查询自来水消耗量")
@ApiOperation(value = "查询自来水消耗量", notes = "查询自来水消耗量")
@RequestMapping(value = "/queryZLSAnalysis", method = RequestMethod.GET)
public Result<List<Map<String, Object>>> queryZLSAnalysis(String time) {
Result<List<Map<String, Object>>> result = new Result<>();
List<Map<String, Object>> list = waterCountAnalysisNewService.queryZLSAnalysis(time);
result.setResult(list);
result.setSuccess(true);
return result;
}
}