药耗,能耗分析页面迁移
正在显示
29 个修改的文件
包含
724 行增加
和
50 行删除
... | @@ -120,8 +120,8 @@ public class CommandCentreServiceImpl implements ICommandCentreService { | ... | @@ -120,8 +120,8 @@ public class CommandCentreServiceImpl implements ICommandCentreService { |
120 | 120 | ||
121 | @Override | 121 | @Override |
122 | public DepartDrugResult getYhTotal(String month) { | 122 | public DepartDrugResult getYhTotal(String month) { |
123 | // String monthTb = getTbMonth(month);//同比时间 | 123 | String monthTb = getTbMonth(month);//同比时间 |
124 | // String monthHb = getHbMonth(month);//环比时间 | 124 | String monthHb = getHbMonth(month);//环比时间 |
125 | // String view2119 = "2119ecbf53a1d2d0708258ff67cfd9e1"; | 125 | // String view2119 = "2119ecbf53a1d2d0708258ff67cfd9e1"; |
126 | // String view3a24 = "3a243d5715b9e1a3753c180872ca0df9"; | 126 | // String view3a24 = "3a243d5715b9e1a3753c180872ca0df9"; |
127 | // String departId = "1519193830953553920,1519200041706954752,1816759403152666624,1818214145808531456,1818214519948836864," + | 127 | // String departId = "1519193830953553920,1519200041706954752,1816759403152666624,1818214145808531456,1818214519948836864," + |
... | @@ -141,57 +141,12 @@ public class CommandCentreServiceImpl implements ICommandCentreService { | ... | @@ -141,57 +141,12 @@ public class CommandCentreServiceImpl implements ICommandCentreService { |
141 | departDrugResult.setZyh("0"); | 141 | departDrugResult.setZyh("0"); |
142 | departDrugResult.setZyhHb("0"); | 142 | departDrugResult.setZyhHb("0"); |
143 | departDrugResult.setZyhTb("0"); | 143 | departDrugResult.setZyhTb("0"); |
144 | DepartDrugDataVO departDrugDataVO1 = new DepartDrugDataVO(); | ||
145 | departDrugDataVO1.setDepartId("1519193830953553920"); | ||
146 | departDrugDataVO1.setDepartName("杨村镇污水处理厂"); | ||
147 | departDrugDataVO1.setYjdh("0"); | ||
148 | departDrugDataVO1.setYjdhHb("0"); | ||
149 | departDrugDataVO1.setYjdhTb("0"); | ||
150 | DepartDrugDataVO departDrugDataVO2 = new DepartDrugDataVO(); | ||
151 | departDrugDataVO2.setDepartId("1519200041706954752"); | ||
152 | departDrugDataVO2.setDepartName("秦栏镇污水处理厂"); | ||
153 | departDrugDataVO2.setYjdh("0"); | ||
154 | departDrugDataVO2.setYjdhHb("0"); | ||
155 | departDrugDataVO2.setYjdhTb("0"); | ||
156 | List<DepartDrugDataVO> drugList = new ArrayList<>(); | 144 | List<DepartDrugDataVO> drugList = new ArrayList<>(); |
157 | // drugList = fReportItemvMapper.getYhList(month,monthTb,monthHb); | 145 | drugList = fReportItemvMapper.getYhList(month,monthTb,monthHb); |
158 | drugList.add(departDrugDataVO1); | ||
159 | drugList.add(departDrugDataVO2); | ||
160 | departDrugResult.setDrugList(drugList); | 146 | departDrugResult.setDrugList(drugList); |
161 | return departDrugResult; | 147 | return departDrugResult; |
162 | } | 148 | } |
163 | 149 | ||
164 | /*** | ||
165 | * 根据String itemCode, String reportId 查询reitId字段 | ||
166 | * @param reportItemvParam | ||
167 | * @return | ||
168 | */ | ||
169 | /* private String getReitId( ReportItemvParam reportItemvParam){ | ||
170 | List<FReportItem> reitIdList = reportItemMapper.getItemInfoByItemCode(reportItemvParam.getReportItemCode(),reportItemvParam.getReportId()); | ||
171 | String reitId = null; | ||
172 | if(reitIdList != null && !reitIdList.isEmpty()){ | ||
173 | reitId = reitIdList.get(0).getId(); | ||
174 | } | ||
175 | return reitId; | ||
176 | }*/ | ||
177 | /* private String getReitId( String itemCode, String reportId){ | ||
178 | JdbcTemplate jdbcTemplate = (JdbcTemplate) SpringContextUtils.getBean("master"); | ||
179 | String sql = "select id from f_report_item where report_id = '"+reportId+"' and required='1' and item_code = '"+itemCode+"'"; | ||
180 | |||
181 | // String sql = "SELECT column_name FROM table_name WHERE condition"; | ||
182 | List<String> reitIdList = jdbcTemplate.query(sql, (rs, rowNum) -> rs.getString("id")); | ||
183 | |||
184 | //该方法会返回查询结果集中的第一条记录对应的指定字段值。 | ||
185 | //String sql = "SELECT column_name FROM table_name WHERE condition"; | ||
186 | //String reitId = jdbcTemplate.queryForObject(sql, String.class); | ||
187 | System.out.println(reitIdList+"----reitIdList"); | ||
188 | String reitId = null; | ||
189 | if(reitIdList != null && !reitIdList.isEmpty()){ | ||
190 | reitId = reitIdList.get(0); | ||
191 | } | ||
192 | return reitId; | ||
193 | }*/ | ||
194 | |||
195 | /** | 150 | /** |
196 | * 同比 | 151 | * 同比 |
197 | * @param month | 152 | * @param month | ... | ... |
... | @@ -142,7 +142,7 @@ | ... | @@ -142,7 +142,7 @@ |
142 | FROM | 142 | FROM |
143 | report_electric_cost | 143 | report_electric_cost |
144 | WHERE | 144 | WHERE |
145 | month BETWEEN '2024-01' AND '2024-09' | 145 | month BETWEEN '2024-01' AND '2024-10' |
146 | GROUP BY month | 146 | GROUP BY month |
147 | </select> | 147 | </select> |
148 | 148 | ||
... | @@ -153,7 +153,8 @@ | ... | @@ -153,7 +153,8 @@ |
153 | </select> | 153 | </select> |
154 | 154 | ||
155 | <select id="getYhList" resultType="com.skua.modules.report.vo.DepartDrugDataVO"> | 155 | <select id="getYhList" resultType="com.skua.modules.report.vo.DepartDrugDataVO"> |
156 | select * from sys_depart where depart_type = '1' | 156 | select d.id AS depart_id,d.depart_name,'0' as yjdh,'0' as yjdh_tb,'0' as yjdh_hb from sys_depart d |
157 | where d.depart_type = '1' | ||
157 | </select> | 158 | </select> |
158 | 159 | ||
159 | </mapper> | 160 | </mapper> | ... | ... |
1 | package com.skua.modules.equipment.controller; | ||
2 | |||
3 | |||
4 | import com.skua.core.api.vo.Result; | ||
5 | import com.skua.core.aspect.annotation.AutoLog; | ||
6 | import com.skua.modules.equipment.dto.DrugDto; | ||
7 | import com.skua.modules.equipment.service.IDrugConsumptionAnalysisService; | ||
8 | import io.swagger.annotations.Api; | ||
9 | import io.swagger.annotations.ApiOperation; | ||
10 | import lombok.extern.slf4j.Slf4j; | ||
11 | import org.springframework.beans.factory.annotation.Autowired; | ||
12 | import org.springframework.web.bind.annotation.RequestMapping; | ||
13 | import org.springframework.web.bind.annotation.RequestMethod; | ||
14 | import org.springframework.web.bind.annotation.RestController; | ||
15 | |||
16 | import java.util.Map; | ||
17 | |||
18 | |||
19 | @Slf4j | ||
20 | @Api(tags = "药耗分析") | ||
21 | @RestController | ||
22 | @RequestMapping("/drug/consumption/analysis") | ||
23 | public class DrugConsumptionAnalysisController { | ||
24 | |||
25 | @Autowired | ||
26 | private IDrugConsumptionAnalysisService drugConsumptionAnalysisService; | ||
27 | |||
28 | |||
29 | @AutoLog(value = "数据展示") | ||
30 | @ApiOperation(value = "数据展示", notes = "数据展示") | ||
31 | @RequestMapping(value = "/data/display", method = RequestMethod.GET) | ||
32 | public Result<Map<String, Object>> dataDisplay(String time) { | ||
33 | Result<Map<String, Object>> result = new Result<>(); | ||
34 | Map<String, Object> data = drugConsumptionAnalysisService.DataDisplay(time); | ||
35 | result.setResult(data); | ||
36 | result.setSuccess(true); | ||
37 | return result; | ||
38 | } | ||
39 | |||
40 | |||
41 | @AutoLog(value = "总药耗趋势") | ||
42 | @ApiOperation(value = "总药耗趋势", notes = "总药耗趋势") | ||
43 | @RequestMapping(value = "/drug/consumption/trend", method = RequestMethod.GET) | ||
44 | public Result<Map<String, Object>> drugConsumptionTrend(String time) { | ||
45 | Result<Map<String, Object>> result = new Result<>(); | ||
46 | Map<String, Object> data = drugConsumptionAnalysisService.drugConsumptionTrend(time); | ||
47 | result.setResult(data); | ||
48 | result.setSuccess(true); | ||
49 | return result; | ||
50 | } | ||
51 | |||
52 | @AutoLog(value = "吨水药耗趋势") | ||
53 | @ApiOperation(value = "吨水药耗趋势", notes = "吨水药耗趋势") | ||
54 | @RequestMapping(value = "/consumption/ton/of/water/trend", method = RequestMethod.GET) | ||
55 | public Result<Map<String, Object>> consumptionTonOfWaterTrend(String time) { | ||
56 | Result<Map<String, Object>> result = new Result<>(); | ||
57 | Map<String, Object> data = drugConsumptionAnalysisService.consumptionTonOfWaterTrend(time); | ||
58 | result.setResult(data); | ||
59 | result.setSuccess(true); | ||
60 | return result; | ||
61 | } | ||
62 | |||
63 | @AutoLog(value = "药剂占比统计 type 1.按明细 2.按类型") | ||
64 | @ApiOperation(value = "药剂占比统计 type 1.按明细 2.按类型", notes = "药剂占比统计 type 1.按明细 2.按类型") | ||
65 | @RequestMapping(value = "/proportion/statistics", method = RequestMethod.GET) | ||
66 | public Result<Map<String, Object>> proportionStatistics(String time,Integer type) { | ||
67 | Result<Map<String, Object>> result = new Result<>(); | ||
68 | Map<String, Object> data = drugConsumptionAnalysisService.proportionStatistics(time,type); | ||
69 | result.setResult(data); | ||
70 | result.setSuccess(true); | ||
71 | return result; | ||
72 | } | ||
73 | |||
74 | @AutoLog(value = "药剂占比统计列表 type 1.按明细 2.按类型") | ||
75 | @ApiOperation(value = "药剂占比统计列表 type 1.按明细 2.按类型", notes = "药剂占比统计列表 type 1.按明细 2.按类型") | ||
76 | @RequestMapping(value = "/proportion/statistics/detail", method = RequestMethod.GET) | ||
77 | public Result<Map<String, Object>> proportionStatisticsDetail(String time,Integer type) { | ||
78 | Result<Map<String, Object>> result = new Result<>(); | ||
79 | Map<String, Object> data = drugConsumptionAnalysisService.proportionStatisticsDetail(time,type); | ||
80 | result.setResult(data); | ||
81 | result.setSuccess(true); | ||
82 | return result; | ||
83 | } | ||
84 | |||
85 | @AutoLog(value = "相关性分析 type 1.絮凝剂 2.碳源 3.除磷剂") | ||
86 | @ApiOperation(value = "相关性分析 type 1.絮凝剂 2.碳源 3.除磷剂", notes = "相关性分析 type 1.絮凝剂 2.碳源 3.除磷剂") | ||
87 | @RequestMapping(value = "/correlation/analysis", method = RequestMethod.GET) | ||
88 | public Result<Map<String, Object>> correlationAnalysis(String time,Integer type) { | ||
89 | Result<Map<String, Object>> result = new Result<>(); | ||
90 | Map<String, Object> data = drugConsumptionAnalysisService.correlationAnalysis(time,type); | ||
91 | result.setResult(data); | ||
92 | result.setSuccess(true); | ||
93 | return result; | ||
94 | } | ||
95 | |||
96 | @AutoLog(value = "总药耗趋势详情") | ||
97 | @ApiOperation(value = "总药耗趋势详情", notes = "总药耗趋势详情") | ||
98 | @RequestMapping(value = "/drug/consumption/trend/detail", method = RequestMethod.GET) | ||
99 | public Result<Map<String, Object>> drugConsumptionTrendDetail(DrugDto drugDto) { | ||
100 | Result<Map<String, Object>> result = new Result<>(); | ||
101 | Map<String, Object> data = drugConsumptionAnalysisService.drugConsumptionTrendDetail(drugDto); | ||
102 | result.setResult(data); | ||
103 | result.setSuccess(true); | ||
104 | return result; | ||
105 | } | ||
106 | |||
107 | @AutoLog(value = "相关性分析药剂明细 type 1.絮凝剂 2.碳源 3.除磷剂") | ||
108 | @ApiOperation(value = "相关性分析药剂明细 type 1.絮凝剂 2.碳源 3.除磷剂", notes = "相关性分析药剂明细 type 1.絮凝剂 2.碳源 3.除磷剂") | ||
109 | @RequestMapping(value = "/correlation/analysis/detail", method = RequestMethod.GET) | ||
110 | public Result<Map<String, Object>> correlationAnalysisDetail(String time,Integer type) { | ||
111 | Result<Map<String, Object>> result = new Result<>(); | ||
112 | Map<String, Object> data = drugConsumptionAnalysisService.correlationAnalysisDetail(time,type); | ||
113 | result.setResult(data); | ||
114 | result.setSuccess(true); | ||
115 | return result; | ||
116 | } | ||
117 | } |
1 | package com.skua.modules.equipment.controller; | ||
2 | |||
3 | |||
4 | import com.skua.core.api.vo.Result; | ||
5 | import com.skua.core.aspect.annotation.AutoLog; | ||
6 | import com.skua.modules.equipment.service.IPowerConsumptionAnalysisService; | ||
7 | import com.skua.modules.equipment.vo.AnysisParamsVO; | ||
8 | import io.swagger.annotations.Api; | ||
9 | import io.swagger.annotations.ApiOperation; | ||
10 | import lombok.extern.slf4j.Slf4j; | ||
11 | import org.springframework.beans.factory.annotation.Autowired; | ||
12 | import org.springframework.web.bind.annotation.RequestMapping; | ||
13 | import org.springframework.web.bind.annotation.RequestMethod; | ||
14 | import org.springframework.web.bind.annotation.RestController; | ||
15 | |||
16 | import java.util.Map; | ||
17 | |||
18 | |||
19 | @Slf4j | ||
20 | @Api(tags = "电耗分析") | ||
21 | @RestController | ||
22 | @RequestMapping("/power/consumption/analysis") | ||
23 | public class PowerConsumptionAnalysisController { | ||
24 | |||
25 | @Autowired | ||
26 | private IPowerConsumptionAnalysisService powerConsumptionAnalysisService; | ||
27 | |||
28 | |||
29 | @AutoLog(value = "数据展示") | ||
30 | @ApiOperation(value = "数据展示", notes = "数据展示") | ||
31 | @RequestMapping(value = "/data/display", method = RequestMethod.GET) | ||
32 | public Result<Map<String, Object>> dataDisplay(AnysisParamsVO anysisParamsVO) { | ||
33 | Result<Map<String, Object>> result = new Result<>(); | ||
34 | Map<String, Object> data = powerConsumptionAnalysisService.dataDisplay(anysisParamsVO); | ||
35 | result.setResult(data); | ||
36 | result.setSuccess(true); | ||
37 | return result; | ||
38 | } | ||
39 | |||
40 | @AutoLog(value = "电耗趋势") | ||
41 | @ApiOperation(value = "电耗趋势", notes = "电耗趋势") | ||
42 | @RequestMapping(value = "/power/consumption/trend", method = RequestMethod.GET) | ||
43 | public Result<Map<String, Object>> powerConsumptionTrend(AnysisParamsVO anysisParamsVO) { | ||
44 | Result<Map<String, Object>> result = new Result<>(); | ||
45 | Map<String, Object> data = powerConsumptionAnalysisService.powerConsumptionTrend(anysisParamsVO); | ||
46 | result.setResult(data); | ||
47 | result.setSuccess(true); | ||
48 | return result; | ||
49 | } | ||
50 | |||
51 | @AutoLog(value = "吨水电耗趋势") | ||
52 | @ApiOperation(value = "吨水电耗趋势", notes = "吨水电耗趋势") | ||
53 | @RequestMapping(value = "/ton/of/water/trend", method = RequestMethod.GET) | ||
54 | public Result<Map<String, Object>> tonOfWaterTrend(AnysisParamsVO anysisParamsVO) { | ||
55 | Result<Map<String, Object>> result = new Result<>(); | ||
56 | Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterTrend(anysisParamsVO); | ||
57 | result.setResult(data); | ||
58 | result.setSuccess(true); | ||
59 | return result; | ||
60 | } | ||
61 | |||
62 | @AutoLog(value = "吨水电耗与负荷率对比") | ||
63 | @ApiOperation(value = "吨水电耗与负荷率对比", notes = "吨水电耗与负荷率对比") | ||
64 | @RequestMapping(value = "/tonOfWaterAndLoadRate", method = RequestMethod.GET) | ||
65 | public Result<Map<String, Object>> tonOfWaterAndLoadRate(AnysisParamsVO anysisParamsVO) throws Exception{ | ||
66 | Result<Map<String, Object>> result = new Result<>(); | ||
67 | Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterAndLoadRate(anysisParamsVO); | ||
68 | result.setResult(data); | ||
69 | result.setSuccess(true); | ||
70 | return result; | ||
71 | } | ||
72 | |||
73 | @AutoLog(value = "吨水电耗与污染物浓度") | ||
74 | @ApiOperation(value = "吨水电耗与污染物浓度", notes = "吨水电耗与污染物浓度") | ||
75 | @RequestMapping(value = "/tonOfWaterAndPollutantConcentration", method = RequestMethod.GET) | ||
76 | public Result<Map<String, Object>> tonOfWaterAndPollutantConcentration(AnysisParamsVO anysisParamsVO) throws Exception{ | ||
77 | Result<Map<String, Object>> result = new Result<>(); | ||
78 | Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterAndPollutantConcentration(anysisParamsVO); | ||
79 | result.setResult(data); | ||
80 | result.setSuccess(true); | ||
81 | return result; | ||
82 | } | ||
83 | |||
84 | @AutoLog(value = "吨水电耗与污染物去除率对比") | ||
85 | @ApiOperation(value = "吨水电耗与污染物去除率对比", notes = "吨水电耗与污染物去除率对比") | ||
86 | @RequestMapping(value = "/tonOfWaterAndPollutantRemovalRate", method = RequestMethod.GET) | ||
87 | public Result<Map<String, Object>> tonOfWaterAndPollutantRemovalRate(AnysisParamsVO anysisParamsVO) throws Exception{ | ||
88 | Result<Map<String, Object>> result = new Result<>(); | ||
89 | Map<String, Object> data = powerConsumptionAnalysisService.tonOfWaterAndPollutantRemovalRate(anysisParamsVO); | ||
90 | result.setResult(data); | ||
91 | result.setSuccess(true); | ||
92 | return result; | ||
93 | } | ||
94 | } |
1 | package com.skua.modules.equipment.dto; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class AlarmDto { | ||
8 | |||
9 | @ApiModelProperty("超标名称") | ||
10 | private String name; | ||
11 | |||
12 | @ApiModelProperty("超标值") | ||
13 | private String v; | ||
14 | |||
15 | @ApiModelProperty("超标时间") | ||
16 | private String time; | ||
17 | |||
18 | @ApiModelProperty("上限") | ||
19 | private String upperLimit; | ||
20 | |||
21 | @ApiModelProperty("下限") | ||
22 | private String lowerLimit; | ||
23 | } |
1 | package com.skua.modules.equipment.dto; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class DrugDto { | ||
8 | |||
9 | @ApiModelProperty("1.日 2.月 .3自定义") | ||
10 | private Integer type; | ||
11 | |||
12 | @ApiModelProperty("开始时间") | ||
13 | private String startTime; | ||
14 | |||
15 | @ApiModelProperty("结束时间") | ||
16 | private String endTime; | ||
17 | } |
sk-module-equipment/src/main/java/com/skua/modules/equipment/dto/ReportItemCustomDetailDto.java
0 → 100644
1 | package com.skua.modules.equipment.dto; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class ReportItemCustomDetailDto { | ||
8 | |||
9 | @ApiModelProperty(value = "指标编码") | ||
10 | private String itemCode; | ||
11 | @ApiModelProperty(value = "指标名称") | ||
12 | private String itemName; | ||
13 | @ApiModelProperty("吨水耗量") | ||
14 | private Double dshl; | ||
15 | @ApiModelProperty("吨水耗量同比") | ||
16 | private Double dshltb; | ||
17 | @ApiModelProperty("吨水耗量环比") | ||
18 | private Double dshlhb; | ||
19 | @ApiModelProperty("总耗量") | ||
20 | private Double zhl; | ||
21 | @ApiModelProperty("总耗量同比") | ||
22 | private Double zhltb; | ||
23 | @ApiModelProperty("总耗量环比") | ||
24 | private Double zhlhb; | ||
25 | } |
sk-module-equipment/src/main/java/com/skua/modules/equipment/dto/ReportItemCustomDto.java
0 → 100644
1 | package com.skua.modules.equipment.dto; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class ReportItemCustomDto { | ||
8 | |||
9 | private String id; | ||
10 | @ApiModelProperty(value = "父ID") | ||
11 | private String pid; | ||
12 | @ApiModelProperty(value = "节点路径") | ||
13 | private String treePath; | ||
14 | @ApiModelProperty(value = "药剂类型") | ||
15 | private String itemType; | ||
16 | @ApiModelProperty(value = "指标编码") | ||
17 | private String itemCode; | ||
18 | @ApiModelProperty(value = "指标名称") | ||
19 | private String itemName; | ||
20 | private String v; | ||
21 | } |
sk-module-equipment/src/main/java/com/skua/modules/equipment/dto/ReportItemCustomValueDetailDto.java
0 → 100644
1 | package com.skua.modules.equipment.dto; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class ReportItemCustomValueDetailDto { | ||
8 | |||
9 | @ApiModelProperty(value = "药剂类型") | ||
10 | private String itemType; | ||
11 | @ApiModelProperty(value = "指标编码") | ||
12 | private String itemCode; | ||
13 | @ApiModelProperty(value = "指标名称") | ||
14 | private String itemName; | ||
15 | @ApiModelProperty("时间") | ||
16 | private String time; | ||
17 | @ApiModelProperty("总药耗") | ||
18 | private String zyh; | ||
19 | @ApiModelProperty("吨水药耗") | ||
20 | private String dsyh; | ||
21 | } |
sk-module-equipment/src/main/java/com/skua/modules/equipment/dto/ReportItemCustomValueDto.java
0 → 100644
1 | package com.skua.modules.equipment.dto; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class ReportItemCustomValueDto { | ||
8 | |||
9 | @ApiModelProperty(value = "药剂类型") | ||
10 | private String itemType; | ||
11 | @ApiModelProperty(value = "指标编码") | ||
12 | private String itemCode; | ||
13 | @ApiModelProperty(value = "指标名称") | ||
14 | private String itemName; | ||
15 | @ApiModelProperty("时间") | ||
16 | private String time; | ||
17 | @ApiModelProperty("数量") | ||
18 | private String v; | ||
19 | } |
1 | package com.skua.modules.equipment.mapper; | ||
2 | |||
3 | |||
4 | import com.skua.modules.equipment.dto.*; | ||
5 | import com.skua.modules.equipment.vo.AlarmVo; | ||
6 | import com.skua.modules.equipment.vo.MetricVo; | ||
7 | import com.skua.modules.equipment.vo.StructDictVo; | ||
8 | import org.apache.ibatis.annotations.Param; | ||
9 | |||
10 | import java.util.List; | ||
11 | import java.util.Map; | ||
12 | |||
13 | public interface ComprehensiveSupervisionMapper { | ||
14 | |||
15 | String selectDeviceName(@Param("factoryId") String factoryId); | ||
16 | |||
17 | MetricVo selectMetric(@Param("metricUidTag") String metricUidTag,@Param("factoryId") String factoryId); | ||
18 | |||
19 | String selectSJGM(@Param("factoryId") String factoryId); | ||
20 | |||
21 | List<AlarmVo> selectAlarms(); | ||
22 | |||
23 | List<AlarmVo> selectInAlarms(); | ||
24 | |||
25 | List<AlarmDto> selectDhByMonths(@Param("list") List<String> months, @Param("factoryId") String factoryId); | ||
26 | |||
27 | List<AlarmDto> selectAllDh(@Param("factoryId") String factoryId); | ||
28 | |||
29 | List<AlarmDto> selectDhByStartAndEnd(@Param("startTime") String startTime, @Param("endTime") String endTime,@Param("factoryId") String factoryId); | ||
30 | |||
31 | AlarmDto selectDhByYear(String year); | ||
32 | |||
33 | List<String> selectDataIdsByMonth(String month); | ||
34 | |||
35 | List<ReportItemCustomDto> selectItemCustom(); | ||
36 | |||
37 | List<ReportItemCustomDto> selectValueByDataId(@Param("list") List<String> dataIds); | ||
38 | |||
39 | ReportItemCustomDto selectVByDataIdAndPid(@Param("list") List<String> dataIds, @Param("id") String id); | ||
40 | |||
41 | String selectZyhByDataIds(@Param("list") List<String> dataIds); | ||
42 | |||
43 | List<AlarmDto> selectAllYh(); | ||
44 | |||
45 | List<AlarmDto> selectYhByStartTimeAndEndTime(@Param("startTime") String startTime, @Param("endTime") String endTime); | ||
46 | |||
47 | List<ReportItemCustomValueDto> selectItemDetail(@Param("list") List<String> dataIds); | ||
48 | |||
49 | String selectXnjByDataIds(@Param("list") List<String> dataIds); | ||
50 | |||
51 | String selectGwnByTime(String s); | ||
52 | |||
53 | String selectTyByDataIds(@Param("list")List<String> dataIds); | ||
54 | |||
55 | String selectBodByTime(String s); | ||
56 | |||
57 | String selectTnByTime(String s); | ||
58 | |||
59 | String selectClByDataIds(@Param("list")List<String> dataIds); | ||
60 | |||
61 | List<String> selectDataIdsByDay(String seven); | ||
62 | |||
63 | List<ReportItemCustomValueDetailDto> selectVByDay(@Param("list") List<String> dataIds); | ||
64 | |||
65 | List<ReportItemCustomValueDetailDto> selectVByMonth(@Param("list") List<String> dataIds); | ||
66 | |||
67 | List<ReportItemCustomValueDto> selectDetailVByMonth(@Param("list")List<String> dataIds, @Param("id") String s); | ||
68 | |||
69 | List<StructDictVo> structDictList(); | ||
70 | |||
71 | List<StructDictVo> metricList(String id); | ||
72 | |||
73 | String selectMetricNameById(String id); | ||
74 | |||
75 | |||
76 | /** | ||
77 | * 月度电耗水耗统计 | ||
78 | * | ||
79 | * @return | ||
80 | */ | ||
81 | ConsumptionDto selectMonthlyPowerConsumption(@Param("dataStr") String dataStr, @Param("departIds") List<String> departIds); | ||
82 | |||
83 | |||
84 | /** | ||
85 | * 月度药耗统计 | ||
86 | * | ||
87 | * @return | ||
88 | */ | ||
89 | DrugConsumptionDto selectMonthlyDrugConsumptionStatistics(@Param("dataStr") String dataStr, @Param("departIds") List<String> departIds); | ||
90 | |||
91 | |||
92 | /** | ||
93 | * 天出水量统计 | ||
94 | * | ||
95 | * @return | ||
96 | */ | ||
97 | Integer selectShByDay(@Param("date") String date, @Param("departIds") List<String> departIds); | ||
98 | |||
99 | |||
100 | /** | ||
101 | * 查询某年 每日警告的次数列表 | ||
102 | * | ||
103 | * @param year | ||
104 | * @returnt | ||
105 | */ | ||
106 | List<AlarmCountDto> selectCountAlarmByYearForDay(@Param("year") String year, @Param("departIds") List<String> departIds); | ||
107 | |||
108 | |||
109 | /** | ||
110 | * 根据时间查询水质变化 | ||
111 | * | ||
112 | * @return | ||
113 | */ | ||
114 | List<QualityChangeDto> qualityChange(List<String> days, String code, @Param("departIds") List<String> departIds); | ||
115 | |||
116 | /** | ||
117 | * 获取月度处理水量 | ||
118 | * @param list | ||
119 | * @param factoryId | ||
120 | * @return | ||
121 | */ | ||
122 | List<Map<String, Object>> selectClslByMonths(List<String> list, String factoryId); | ||
123 | |||
124 | /** | ||
125 | * 获取所有月份处理水量 | ||
126 | * @param factoryId | ||
127 | * @return | ||
128 | */ | ||
129 | List<AlarmDto> selectAllClsl(String factoryId); | ||
130 | } |
此文件的差异被折叠,
点击展开。
1 | package com.skua.modules.equipment.service; | ||
2 | |||
3 | |||
4 | import com.skua.modules.equipment.dto.DrugDto; | ||
5 | |||
6 | import java.util.Map; | ||
7 | |||
8 | public interface IDrugConsumptionAnalysisService { | ||
9 | |||
10 | Map<String, Object> DataDisplay(String time); | ||
11 | |||
12 | Map<String, Object> drugConsumptionTrend(String time); | ||
13 | |||
14 | Map<String, Object> consumptionTonOfWaterTrend(String time); | ||
15 | |||
16 | Map<String, Object> proportionStatistics(String time, Integer type); | ||
17 | |||
18 | Map<String, Object> proportionStatisticsDetail(String time, Integer type); | ||
19 | |||
20 | Map<String, Object> correlationAnalysis(String time, Integer type); | ||
21 | |||
22 | Map<String, Object> drugConsumptionTrendDetail(DrugDto drugDto); | ||
23 | |||
24 | Map<String, Object> correlationAnalysisDetail(String time, Integer type); | ||
25 | } |
1 | package com.skua.modules.equipment.service; | ||
2 | |||
3 | |||
4 | import com.skua.modules.equipment.vo.AnysisParamsVO; | ||
5 | |||
6 | import java.util.Map; | ||
7 | |||
8 | public interface IPowerConsumptionAnalysisService { | ||
9 | /** | ||
10 | * 数据展示 | ||
11 | * @param anysisParamsVO | ||
12 | * @return | ||
13 | */ | ||
14 | Map<String, Object> dataDisplay(AnysisParamsVO anysisParamsVO); | ||
15 | |||
16 | /** | ||
17 | * 电耗趋势 | ||
18 | * @param anysisParamsVO | ||
19 | * @return | ||
20 | */ | ||
21 | Map<String, Object> powerConsumptionTrend(AnysisParamsVO anysisParamsVO); | ||
22 | |||
23 | /** | ||
24 | * 吨水电耗趋势 | ||
25 | * @param anysisParamsVO | ||
26 | * @return | ||
27 | */ | ||
28 | Map<String, Object> tonOfWaterTrend(AnysisParamsVO anysisParamsVO); | ||
29 | |||
30 | /** | ||
31 | * 吨水电耗和负荷率对比 | ||
32 | * @param anysisParamsVO | ||
33 | * @return | ||
34 | */ | ||
35 | Map<String, Object> tonOfWaterAndLoadRate(AnysisParamsVO anysisParamsVO) throws Exception; | ||
36 | |||
37 | /** | ||
38 | * 吨水电耗与污染物浓度 | ||
39 | * @param anysisParamsVO | ||
40 | * @return | ||
41 | */ | ||
42 | Map<String, Object> tonOfWaterAndPollutantConcentration(AnysisParamsVO anysisParamsVO); | ||
43 | |||
44 | /** | ||
45 | * 吨水电耗与污染物去除率对比 | ||
46 | * @param anysisParamsVO | ||
47 | * @return | ||
48 | */ | ||
49 | Map<String, Object> tonOfWaterAndPollutantRemovalRate(AnysisParamsVO anysisParamsVO); | ||
50 | } |
此文件的差异被折叠,
点击展开。
此文件的差异被折叠,
点击展开。
1 | package com.skua.modules.equipment.vo; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | @Data | ||
7 | public class MetricVo { | ||
8 | |||
9 | private String id; | ||
10 | |||
11 | private String metricUidTag; | ||
12 | |||
13 | @ApiModelProperty("格式: yyyy-MM-dd") | ||
14 | private String startTIme; | ||
15 | |||
16 | @ApiModelProperty("格式: yyyy-MM-dd") | ||
17 | private String endTime; | ||
18 | } |
1 | package com.skua.modules.equipment.vo; | ||
2 | |||
3 | import io.swagger.annotations.ApiModelProperty; | ||
4 | import lombok.Data; | ||
5 | |||
6 | import java.util.ArrayList; | ||
7 | import java.util.List; | ||
8 | |||
9 | @Data | ||
10 | public class StructDictVo { | ||
11 | |||
12 | private String id; | ||
13 | |||
14 | private String name; | ||
15 | |||
16 | @ApiModelProperty("指标") | ||
17 | private List<StructDictVo> metrics=new ArrayList<>(); | ||
18 | } |
-
请 注册 或 登录 后发表评论