kangwei: 修改bug
周报数据:(电耗)本周实际、对比目标值、 (药耗)本周实际、对比目标值、 能耗分析:处理水量单位改为万吨
正在显示
4 个修改的文件
包含
9 行增加
和
6 行删除
... | @@ -199,11 +199,11 @@ | ... | @@ -199,11 +199,11 @@ |
199 | v8.dlhj,v8.yjhl,v8.wnl, | 199 | v8.dlhj,v8.yjhl,v8.wnl, |
200 | v2.zclsl,v2.rjclsl, | 200 | v2.zclsl,v2.rjclsl, |
201 | t.target_power as dsdhnmb, | 201 | t.target_power as dsdhnmb, |
202 | round(v8.dlhj/(v2.zclsl*10000),2) as dsdhzsj, | 202 | round(IFNULL(v8.dlhj,0)/(v2.zclsl),2) as dsdhzsj, |
203 | '' as dsdhdb, | 203 | round((IFNULL(v8.dlhj,0)/(v2.zclsl) - t.target_power)*100/t.target_power,2) as dsdhdb, |
204 | t.target_drug as yjnmb, | 204 | t.target_drug as yjnmb, |
205 | round(v8.yjhl/(v2.zclsl*10000),2) as yjzsj, | 205 | round(IFNULL(v8.yjhl,0)/(v2.zclsl),2) as yjzsj, |
206 | '' as yjdb, | 206 | round((IFNULL(v8.yjhl,0)/(v2.zclsl) - t.target_drug)*100/t.target_drug ,2) as yjdb, |
207 | f.pro_scale as sjgm | 207 | f.pro_scale as sjgm |
208 | FROM | 208 | FROM |
209 | sys_depart d | 209 | sys_depart d | ... | ... |
... | @@ -195,6 +195,7 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa | ... | @@ -195,6 +195,7 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa |
195 | valueMap.put("startdate", startDate); | 195 | valueMap.put("startdate", startDate); |
196 | valueMap.put("enddate", endDate); | 196 | valueMap.put("enddate", endDate); |
197 | } | 197 | } |
198 | // | ||
198 | return valueMap; | 199 | return valueMap; |
199 | } | 200 | } |
200 | 201 | ... | ... |
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/xml/PowerAnalysisNewMapper.xml
... | @@ -375,8 +375,8 @@ | ... | @@ -375,8 +375,8 @@ |
375 | </select> | 375 | </select> |
376 | <select id="querySixMonthPowerConsumption" resultType="map"> | 376 | <select id="querySixMonthPowerConsumption" resultType="map"> |
377 | SELECT | 377 | SELECT |
378 | ROUND(SUM(v2.CSL),2) AS totalBYCLSL, | 378 | ROUND(SUM(IFNULL(v2.CSL,0))/10000,2) AS totalBYCLSL, |
379 | IFNULL(v3.DLHJ,0) AS totalBYYDL, | 379 | ROUND(IFNULL(v3.DLHJ,0),2) AS totalBYYDL, |
380 | ROUND(IFNULL(v3.DLHJ,0)/SUM(v2.CSL),2) AS dsdh, | 380 | ROUND(IFNULL(v3.DLHJ,0)/SUM(v2.CSL),2) AS dsdh, |
381 | LEFT(v2.time,7) AS time | 381 | LEFT(v2.time,7) AS time |
382 | from ${dataViewName2119} v2 | 382 | from ${dataViewName2119} v2 | ... | ... |
... | @@ -59,6 +59,8 @@ public class PowerAnalysisNewServiceImpl implements IPowerAnalysisNewService { | ... | @@ -59,6 +59,8 @@ public class PowerAnalysisNewServiceImpl implements IPowerAnalysisNewService { |
59 | String dataViewName3a24 = ReportViewUtil.buildView(ReportConstant.view3a24,"DLHJ", departIds, start, end); | 59 | String dataViewName3a24 = ReportViewUtil.buildView(ReportConstant.view3a24,"DLHJ", departIds, start, end); |
60 | String dataViewName2119 = ReportViewUtil.buildView(ReportConstant.view2119,"CSL", departIds, start, end); | 60 | String dataViewName2119 = ReportViewUtil.buildView(ReportConstant.view2119,"CSL", departIds, start, end); |
61 | List<Map> SixMonthPowerConsumption = powerAnalysisNewMapper.querySixMonthPowerConsumption(dataViewName3a24, dataViewName2119, start, end, departIds); | 61 | List<Map> SixMonthPowerConsumption = powerAnalysisNewMapper.querySixMonthPowerConsumption(dataViewName3a24, dataViewName2119, start, end, departIds); |
62 | |||
63 | |||
62 | resultMap.put("totalResult", result); | 64 | resultMap.put("totalResult", result); |
63 | resultMap.put("dataList", SixMonthPowerConsumption); | 65 | resultMap.put("dataList", SixMonthPowerConsumption); |
64 | 66 | ... | ... |
-
请 注册 或 登录 后发表评论