54ecff0b 康伟

kangwei : 能环保态势大屏-后端

1 个父辈 bb086d7c
...@@ -359,6 +359,8 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa ...@@ -359,6 +359,8 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa
359 energyConsumeChart.setData(reportData); 359 energyConsumeChart.setData(reportData);
360 largeScreenVO.getEsgChartsList().add(energyConsumeChart); 360 largeScreenVO.getEsgChartsList().add(energyConsumeChart);
361 //吨消减能耗 361 //吨消减能耗
362 energyConsumeChart = new ResultChartsVO();
363 energyConsumeChart.setDataByZhnyxhl(reportData);
362 largeScreenVO.getEnergyConsumeChartsList().add( energyConsumeChart ) ; 364 largeScreenVO.getEnergyConsumeChartsList().add( energyConsumeChart ) ;
363 365
364 //消减量统计 366 //消减量统计
......
...@@ -45,16 +45,4 @@ public class OperationReportController { ...@@ -45,16 +45,4 @@ public class OperationReportController {
45 return result; 45 return result;
46 } 46 }
47 47
48
49 @AutoLog(value = "节能环保大屏:头部统计")
50 @ApiOperation(value = "节能环保大屏:头部统计", notes = "节能环保大屏:头部统计")
51 @GetMapping(value = "/jnhbReportShowHead")
52 public Result<List<JnhbReportData>> jnhbReportShow(String departId, String month) {
53 Result<List<JnhbReportData>> result = new Result<>();
54 List<JnhbReportData> list = fCustomReportDatasetService.jnhbReportShow(departId,month);
55 result.setResult(list);
56 return result;
57 }
58
59
60 } 48 }
......
...@@ -85,7 +85,7 @@ public class JnhbLargeScreenVO { ...@@ -85,7 +85,7 @@ public class JnhbLargeScreenVO {
85 } 85 }
86 86
87 /*** 87 /***
88 * 设置消减统计记录 88 * 设置消减统计记录
89 */ 89 */
90 public void setReduceStatistics(int index , ResultNumberVO resultNumberVO){ 90 public void setReduceStatistics(int index , ResultNumberVO resultNumberVO){
91 ResultNumberVO resultNumberVOTemp = reduceStatisticsList.get( index - 1); 91 ResultNumberVO resultNumberVOTemp = reduceStatisticsList.get( index - 1);
......
1 package com.skua.modules.report.vo.largeScreen; 1 package com.skua.modules.report.vo.largeScreen;
2 2
3 import com.skua.modules.report.vo.JnhbReportData; 3 import com.skua.modules.report.vo.JnhbReportData;
4 import com.skua.tool.util.DigitalUtils;
4 import io.swagger.annotations.ApiModel; 5 import io.swagger.annotations.ApiModel;
5 import io.swagger.annotations.ApiModelProperty; 6 import io.swagger.annotations.ApiModelProperty;
6 import lombok.Data; 7 import lombok.Data;
...@@ -36,4 +37,11 @@ public class ResultChartsVO { ...@@ -36,4 +37,11 @@ public class ResultChartsVO {
36 this.getTpDataList().add( reportData.getTpxjl() ) ; 37 this.getTpDataList().add( reportData.getTpxjl() ) ;
37 this.getTnDataList().add( reportData.getTnxjl() ) ; 38 this.getTnDataList().add( reportData.getTnxjl() ) ;
38 } 39 }
40 public void setDataByZhnyxhl(JnhbReportData reportData ){
41 this.getXLine().add( reportData.getDepartName() ) ;
42 this.getCodDataList().add( DigitalUtils.division( reportData.getZhnyxhl() ,reportData.getCodxjl()) ) ;
43 this.getNh3DataList().add( DigitalUtils.division( reportData.getZhnyxhl() ,reportData.getTnxjl()) ) ;
44 this.getTpDataList().add( DigitalUtils.division( reportData.getZhnyxhl() ,reportData.getTpxjl()) ) ;
45 this.getTnDataList().add( DigitalUtils.division( reportData.getZhnyxhl() ,reportData.getTnxjl()) ) ;
46 }
39 } 47 }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!