WaterAnalysisNewController.java
6.0 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
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.impl.WaterAnalysisNewService;
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/water")
public class WaterAnalysisNewController {
@Autowired
private WaterAnalysisNewService waterAnalysisNewService;
/**
* 查询达标率总体达标情况
*
* @return
*/
@AutoLog(value = "查询达标率总体达标情况")
@ApiOperation(value = "查询达标率总体达标情况", notes = "查询达标率总体达标情况")
@RequestMapping(value = "/queryTotalBySummary", method = RequestMethod.GET)
public Result<Map<String, Object>> queryTotalBySummary(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterAnalysisNewService.queryTotalBySummary(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询达标率厂站列表
*
* @return
*/
@AutoLog(value = "查询达标率厂站列表")
@ApiOperation(value = "查询达标率厂站列表", notes = "查询达标率厂站列表")
@RequestMapping(value = "/queryFacListBySummary", method = RequestMethod.GET)
public Result<List<Map<String, Object>>> queryFacListBySummary(String time) {
Result<List<Map<String, Object>>> result = new Result<>();
List<Map<String, Object>> data = waterAnalysisNewService.queryFacListBySummary(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询出水指标超标次数
*
* @return
*/
@AutoLog(value = "查询出水指标超标次数")
@ApiOperation(value = "查询出水指标超标次数", notes = "查询出水指标超标次数")
@RequestMapping(value = "/queryNoSummaryCount", method = RequestMethod.GET)
public Result<Map<String, Object>> queryNoSummaryCount(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterAnalysisNewService.queryNewSummaryCount(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询出水指标超标次数列表
*
* @return
*/
@AutoLog(value = "查询出水指标超标次数列表")
@ApiOperation(value = "查询出水指标超标次数列表", notes = "查询出水指标超标次数列表")
@RequestMapping(value = "/queryNoSummaryList", method = RequestMethod.GET)
public Result<List<Map<String, Object>>> queryNoSummaryList(String time) {
Result<List<Map<String, Object>>> result = new Result<>();
List<Map<String, Object>> data = waterAnalysisNewService.queryNoSummaryList(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询出水水质指标特征分析
*
* @return
*/
@AutoLog(value = "查询出水水质指标特征分析")
@ApiOperation(value = "查询出水水质指标特征分析", notes = "查询出水水质指标特征分析")
@RequestMapping(value = "/queryCSAnalysis", method = RequestMethod.GET)
public Result<List<Map<String, Object>>> queryCSAnalysis(String time) {
Result<List<Map<String, Object>>> result = new Result<>();
List<Map<String, Object>> data = waterAnalysisNewService.queryCSAnalysis(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询出水水质指标特征分析厂站列表
*
* @return
*/
@AutoLog(value = "查询出水水质指标特征分析厂站列表")
@ApiOperation(value = "查询出水水质指标特征分析厂站列表", notes = "查询出水水质指标特征分析厂站列表")
@RequestMapping(value = "/queryCSAnalysisFacList", method = RequestMethod.GET)
public Result<List<Map<String, Object>>> queryCSAnalysisFacList(String time,String code) {
Result<List<Map<String, Object>>> result = new Result<>();
List<Map<String, Object>> data = waterAnalysisNewService.queryCSAnalysisFacList(time,code);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询水质指标去除率
*
* @return
*/
@AutoLog(value = "查询水质指标去除率")
@ApiOperation(value = "查询水质指标去除率", notes = "查询水质指标去除率")
@RequestMapping(value = "/queryWaterQCL", method = RequestMethod.GET)
public Result<Map<String, Object>> queryWaterQCL(String time) {
Result<Map<String, Object>> result = new Result<>();
Map<String, Object> data = waterAnalysisNewService.queryWaterQCL(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
/**
* 查询各厂指标去除率详细数据
*
* @return
*/
@AutoLog(value = "查询各厂指标去除率详细数据")
@ApiOperation(value = "查询各厂指标去除率详细数据", notes = "查询各厂指标去除率详细数据")
@RequestMapping(value = "/queryFacListWaterQCL", method = RequestMethod.GET)
public Result<List<Map<String, Object>>> queryFacListWaterQCL(String time) {
Result<List<Map<String, Object>>> result = new Result<>();
List<Map<String, Object>> data = waterAnalysisNewService.queryFacListWaterQCL(time);
result.setResult(data);
result.setSuccess(true);
return result;
}
}