Merge remote-tracking branch 'origin/master'
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
... | @@ -100,7 +100,7 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa | ... | @@ -100,7 +100,7 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa |
100 | " v6.dhgyqntqyy, " + | 100 | " v6.dhgyqntqyy, " + |
101 | " round(v4.yjhl/sum(v1.CSL),2) as yyh, " + | 101 | " round(v4.yjhl/sum(v1.CSL),2) as yyh, " + |
102 | " v6.yyf," + | 102 | " v6.yyf," + |
103 | " round(ifnull(v5.yjhl/tb.clsl_tb,0),2) qntqyh, " + | 103 | " round(ifnull(v5.yjhl/tb.clsl_tb/10000,0),2) qntqyh, " + |
104 | " round(100*(v4.yjhl-ifnull(v5.yjhl,0))/ifnull(v5.yjhl,v4.yjhl),2) as yhdbbhl, " + | 104 | " round(100*(v4.yjhl-ifnull(v5.yjhl,0))/ifnull(v5.yjhl,v4.yjhl),2) as yhdbbhl, " + |
105 | " v6.yhgyqntqyy, " + | 105 | " v6.yhgyqntqyy, " + |
106 | " rtc.target_power as bndhmb, " + | 106 | " rtc.target_power as bndhmb, " + |
... | @@ -128,9 +128,9 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa | ... | @@ -128,9 +128,9 @@ public class FCustomReportDatasetServiceImpl extends ServiceImpl<FCustomReportDa |
128 | " ) v4 on v4.month_tb = right(left(v1.time,7),2) " + | 128 | " ) v4 on v4.month_tb = right(left(v1.time,7),2) " + |
129 | " left join ( " + | 129 | " left join ( " + |
130 | " select right(left(time,7),2) month_tb, " + | 130 | " select right(left(time,7),2) month_tb, " + |
131 | " SUM(DLHJ) dlhj,(SUM( PAMRJ ) + SUM( SCLPAMZ ) + SUM( SCLPAMF ) + SUM( NACLO ) + SUM( PACGT ) + SUM( PACYT ) + SUM( PFS ) + SUM( FHTY ) + " + | 131 | " SUM(DLHJ) dlhj,(SUM( IFNULL(PAMRJ,0) ) + SUM( IFNULL(SCLPAMZ,0) ) + SUM( IFNULL(SCLPAMF,0) ) + SUM( IFNULL(NACLO,0) ) + SUM( IFNULL(PACGT,0) ) + SUM( IFNULL(PACYT,0) ) + SUM( IFNULL(PFS,0) ) + SUM( IFNULL(FHTY,0) ) + " + |
132 | " SUM( RYXNJ ) + SUM( YWL ) + SUM( GXCLJ ) + SUM( CH3COONA ) + SUM( HXT ) + SUM( FECL3 ) + SUM( SH ) + SUM( CH3COOH ) + SUM( FESO4G ) + " + | 132 | " SUM( IFNULL(RYXNJ,0) ) + SUM( IFNULL(YWL,0) ) + SUM( IFNULL(GXCLJ,0) ) + SUM( IFNULL(CH3COONA,0) ) + SUM( IFNULL(HXT,0) ) + SUM( IFNULL(FECL3,0) ) + SUM( IFNULL(SH,0) ) + SUM( IFNULL(CH3COOH,0) ) + SUM( IFNULL(FESO4G,0) ) + " + |
133 | " SUM( FESO4Y ) + SUM( H2O2 )) yjhl " + | 133 | " SUM( IFNULL(FESO4Y,0) ) + SUM( IFNULL(H2O2,0) )) yjhl " + |
134 | " from "+dataViewName3a24tb+" v3 " + | 134 | " from "+dataViewName3a24tb+" v3 " + |
135 | " where v3.depart_id = '"+departId+"' and v3.time like CONCAT('"+tbYear+"','%') GROUP BY left(time,7) " + | 135 | " where v3.depart_id = '"+departId+"' and v3.time like CONCAT('"+tbYear+"','%') GROUP BY left(time,7) " + |
136 | " ) v5 on v5.month_tb = right(left(v1.time,7),2) " + | 136 | " ) v5 on v5.month_tb = right(left(v1.time,7),2) " + | ... | ... |
-
请 注册 或 登录 后发表评论