kangwei: bug修复-能耗分析A2O工艺吨水电耗、一级A标准平均数据没计算出来
正在显示
3 个修改的文件
包含
6 行增加
和
6 行删除
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/mapper/xml/PowerAnalysisNewMapper.xml
... | @@ -435,7 +435,7 @@ | ... | @@ -435,7 +435,7 @@ |
435 | </foreach> | 435 | </foreach> |
436 | order by ifnull(p1.ydl/p.clsl,0) desc | 436 | order by ifnull(p1.ydl/p.clsl,0) desc |
437 | </select> | 437 | </select> |
438 | 438 | <!-- 工艺分布--> | |
439 | <select id="queryCraftDSDH" resultType="java.util.Map"> | 439 | <select id="queryCraftDSDH" resultType="java.util.Map"> |
440 | SELECT | 440 | SELECT |
441 | p1.item_text `name`, | 441 | p1.item_text `name`, |
... | @@ -445,7 +445,7 @@ | ... | @@ -445,7 +445,7 @@ |
445 | ( | 445 | ( |
446 | SELECT | 446 | SELECT |
447 | sfi.pro_craft, | 447 | sfi.pro_craft, |
448 | ROUND(p1.ydl/p.clsl,2) AS dsdh | 448 | ROUND( avg(p1.ydl/p.clsl) ,2) AS dsdh |
449 | FROM | 449 | FROM |
450 | sys_factory_info sfi | 450 | sys_factory_info sfi |
451 | LEFT JOIN ( | 451 | LEFT JOIN ( |
... | @@ -488,7 +488,7 @@ | ... | @@ -488,7 +488,7 @@ |
488 | SELECT | 488 | SELECT |
489 | sfi.pro_craft, | 489 | sfi.pro_craft, |
490 | sfi.out_level, | 490 | sfi.out_level, |
491 | ROUND(p1.ydl/p.clsl,2) AS dsdh | 491 | ROUND(avg(p1.ydl/p.clsl),2) AS dsdh |
492 | FROM | 492 | FROM |
493 | sys_factory_info sfi | 493 | sys_factory_info sfi |
494 | LEFT JOIN ( | 494 | LEFT JOIN ( |
... | @@ -525,7 +525,7 @@ | ... | @@ -525,7 +525,7 @@ |
525 | <select id="queryScaleDSDH" resultType="java.util.Map"> | 525 | <select id="queryScaleDSDH" resultType="java.util.Map"> |
526 | SELECT | 526 | SELECT |
527 | sfi.*, | 527 | sfi.*, |
528 | ROUND(p1.ydl/p.clsl,2) AS dsdh | 528 | ROUND(ifnull(avg(p1.ydl/p.clsl),0),2) AS dsdh |
529 | FROM | 529 | FROM |
530 | sys_factory_info sfi | 530 | sys_factory_info sfi |
531 | LEFT JOIN ( | 531 | LEFT JOIN ( | ... | ... |
sk-module-datafill/src/main/java/com/skua/modules/dataAnalysis/service/IPowerAnalysisNewService.java
... | @@ -18,7 +18,7 @@ public interface IPowerAnalysisNewService { | ... | @@ -18,7 +18,7 @@ public interface IPowerAnalysisNewService { |
18 | * 功能描述: <br>电耗分布情况 | 18 | * 功能描述: <br>电耗分布情况 |
19 | */ | 19 | */ |
20 | Map<String, Object> powerConsumptionDistribution(OperationMonthVO operationMonthVO); | 20 | Map<String, Object> powerConsumptionDistribution(OperationMonthVO operationMonthVO); |
21 | 21 | //电耗分析关联分析 | |
22 | Map<String, Object> powerAssociation(OperationMonthVO operationMonthVO); | 22 | Map<String, Object> powerAssociation(OperationMonthVO operationMonthVO); |
23 | 23 | ||
24 | Map<String, Object> powerDSDHCurve(String id, String type, String time); | 24 | Map<String, Object> powerDSDHCurve(String id, String type, String time); | ... | ... |
... | @@ -171,7 +171,7 @@ public class PowerAnalysisNewServiceImpl implements IPowerAnalysisNewService { | ... | @@ -171,7 +171,7 @@ public class PowerAnalysisNewServiceImpl implements IPowerAnalysisNewService { |
171 | result.put("factoryDistributionList", distributionList); | 171 | result.put("factoryDistributionList", distributionList); |
172 | return result; | 172 | return result; |
173 | } | 173 | } |
174 | 174 | //电耗分析关联分析 | |
175 | @Override | 175 | @Override |
176 | public Map<String, Object> powerAssociation(OperationMonthVO operationMonthVO) { | 176 | public Map<String, Object> powerAssociation(OperationMonthVO operationMonthVO) { |
177 | String time = operationMonthVO.getTime(); | 177 | String time = operationMonthVO.getTime(); | ... | ... |
-
请 注册 或 登录 后发表评论