JTDisplayScreenController.java
3.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
package com.skua.modules.threedimensional.controller;
import com.skua.core.api.vo.Result;
import com.skua.core.aspect.annotation.AutoLog;
import com.skua.modules.threedimensional.service.IJTDisplayScreenService;
import com.skua.modules.threedimensional.vo.*;
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.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Slf4j
@Api(tags = "对外展示集团大屏")
@RestController
@RequestMapping("/jtDisplayscreendata")
public class JTDisplayScreenController {
@Autowired
private IJTDisplayScreenService displayScreenService ;
@AutoLog(value = "厂站地图列表")
@ApiOperation(value = "厂长地图列表", notes = "厂长地图列表")
@GetMapping(value = "/factoryList")
public Result<List<SysFactoryInfoVO>> factoryList() {
Result<List<SysFactoryInfoVO>> result = new Result<>();
List<SysFactoryInfoVO> list = displayScreenService.getFactoryList();
result.setResult(list);
return result;
}
//
@AutoLog(value = "项目运营情况")
@ApiOperation(value = "项目运营情况", notes = "项目运营情况")
@GetMapping("/projectOperationInfo")
public Result<ProjectOperationInfoVO> getProjectOperationInfo(String departId, String startTime, String endTime){
Result<ProjectOperationInfoVO> result = new Result<>();
ProjectOperationInfoVO projectOperationInfoVO = displayScreenService.getProjectOperationInfo(departId ,startTime ,endTime);
result.setResult(projectOperationInfoVO);
return result;
}
@AutoLog(value = "水量趋势")
@ApiOperation(value = "水量趋势", notes = "水量趋势")
@GetMapping("/waterTrend")
public Result<List<WaterTrendVO>> waterTrend(String departId, String time ){
Result<List<WaterTrendVO>> result = new Result<>();
List<WaterTrendVO> list = displayScreenService.queryWaterTrend(departId ,time );
result.setResult(list);
return result;
}
@AutoLog(value = "水质水量:左侧统计数据")
@ApiOperation(value = "水质水量:左侧统计数据", notes = "水质水量:左侧统计数据")
@GetMapping("/waterQuality")
public Result<WaterQualityVO> waterQuality(String departId, String startTime, String endTime){
Result<WaterQualityVO> result = new Result<>();
WaterQualityVO waterQualityVO = displayScreenService.queryWaterQuality(departId ,startTime ,endTime);
result.setResult(waterQualityVO);
return result;
}
@AutoLog(value = "水质水量:右侧图表")
@ApiOperation(value = "水质水量:右侧图表", notes = "水质水量:右侧图表")
@GetMapping("/waterQualityChart")
public Result<List<WaterQualityChartVO>> waterQualityCchart(String departId, String time ){
Result<List<WaterQualityChartVO>> result = new Result<>();
List<WaterQualityChartVO> waterTrendVOList = displayScreenService.queryWaterQualityChart(departId ,time);
result.setResult(waterTrendVOList);
return result;
}
//生态效益
@AutoLog(value = "生态效益")
@ApiOperation(value = "生态效益", notes = "生态效益")
@GetMapping("/ecologyBenefit")
public Result<EcologyBenefitVO> ecologyBenefit(String departId, String startTime, String endTime){
Result<EcologyBenefitVO> result = new Result<>();
EcologyBenefitVO data = displayScreenService.ecologyBenefit(departId ,startTime ,endTime);
result.setResult(data);
return result;
}
}