kangwei:节能环保大屏数据展示--头部数据,吨水电耗求平均值,负荷率/10000
正在显示
1 个修改的文件
包含
4 行增加
和
3 行删除
... | @@ -373,14 +373,15 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa | ... | @@ -373,14 +373,15 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa |
373 | 373 | ||
374 | private JnhbReportData getJnhbReportSumData(String departIds, String startTime ,String endTime){ | 374 | private JnhbReportData getJnhbReportSumData(String departIds, String startTime ,String endTime){ |
375 | //头部统计数据 | 375 | //头部统计数据 |
376 | String dataViewName2 = ReportViewUtil.buildView(ReportConstant.view2119,"CSL,JSZL,CSZL,JSCOD,CSCOD,JSAD,CSAD,JSZD,CSTN", departIds, startTime, endTime); | 376 | String dataViewName2 = ReportViewUtil.buildViewLike(ReportConstant.view2119,"CSL,JSZL,CSZL,JSCOD,CSCOD,JSAD,CSAD,JSZD,CSTN", departIds, startTime, endTime); |
377 | String dataViewName3 = ReportViewUtil.buildViewLike(ReportConstant.view3a24,"DLHJ,QY,YSL,WNL,WNHSL,GFCZL,WFCSL,WFCZL", departIds, startTime, endTime); | 377 | String dataViewName3 = ReportViewUtil.buildViewLike(ReportConstant.view3a24,"DLHJ,QY,YSL,WNL,WNHSL,GFCZL,WFCSL,WFCZL", departIds, startTime, endTime); |
378 | System.out.println("dataViewName3 = "+dataViewName3); | 378 | System.out.println("dataViewName3 = "+dataViewName3); |
379 | if(StringUtils.isNotEmpty(departIds)){ | 379 | if(StringUtils.isNotEmpty(departIds)){ |
380 | departIds = JSUtils.quoteEach(departIds,","); | 380 | departIds = JSUtils.quoteEach(departIds,","); |
381 | } | 381 | } |
382 | String sql = " select sum(ddd.wssjcll) wssjcll,avg(ddd.wsfhl) wsfhl,sum(ddd.dh) dh,sum(ddd.qy) qy,sum(ddd.xssyl) xssyl,sum(ddd.zhnyxhl) zhnyxhl,sum(ddd.eyhtpfl) eyhtpfl,sum(ddd.dsdh) dsdh from ( "; | 382 | String sql = " select ROUND(sum(ddd.wssjcll),2) wssjcll,ROUND(avg(ddd.wsfhl),2) wsfhl,ROUND(sum(ddd.dh),2) dh, ROUND(sum(ddd.qy),2) qy,ROUND(sum(ddd.xssyl),2) xssyl,ROUND(sum(ddd.zhnyxhl),2) zhnyxhl,"; |
383 | sql += " select d.depart_name , aaa.CSL ,f.pro_scale ,ROUND( aaa.CSL / 10000, 2 ) AS wssjcll,ROUND( 100 * ( aaa.CSL / ( f.pro_scale * 31 ) ), 2 ) AS wsfhl,"; | 383 | sql += " ROUND(sum(ddd.eyhtpfl),2) eyhtpfl,ROUND(avg(ddd.dsdh),2) dsdh from "; |
384 | sql += " select d.depart_name , aaa.CSL ,f.pro_scale ,ROUND( aaa.CSL / 10000, 2 ) AS wssjcll,ROUND( 100 * ( aaa.CSL / ( f.pro_scale * 31*10000 ) ), 2 ) AS wsfhl,"; | ||
384 | sql += " ROUND( v3.DLHJ / 10000, 2 ) AS dh,v3.qy,v3.ysl AS xssyl,ROUND(0.123*v3.DLHJ/10000 +1.4286*v3.qy,4) AS zhnyxhl ,ROUND(3*v3.qy+0.703*10*v3.DLHJ/1000,4) AS eyhtpfl,ROUND( v3.DLHJ / aaa.CSL, 2 ) AS dsdh"; | 385 | sql += " ROUND( v3.DLHJ / 10000, 2 ) AS dh,v3.qy,v3.ysl AS xssyl,ROUND(0.123*v3.DLHJ/10000 +1.4286*v3.qy,4) AS zhnyxhl ,ROUND(3*v3.qy+0.703*10*v3.DLHJ/1000,4) AS eyhtpfl,ROUND( v3.DLHJ / aaa.CSL, 2 ) AS dsdh"; |
385 | sql += " FROM sys_depart d "; | 386 | sql += " FROM sys_depart d "; |
386 | sql += " LEFT JOIN sys_factory_info f ON f.depart_id = d.id "; | 387 | sql += " LEFT JOIN sys_factory_info f ON f.depart_id = d.id "; | ... | ... |
-
请 注册 或 登录 后发表评论