运营问题修改
正在显示
3 个修改的文件
包含
20 行增加
和
0 行删除
... | @@ -26,4 +26,7 @@ public interface FactoryOperateCenterMapper { | ... | @@ -26,4 +26,7 @@ public interface FactoryOperateCenterMapper { |
26 | 26 | ||
27 | List<Map<String, String>> getReportCount(@Param("departId") String departId, @Param("month") String month, | 27 | List<Map<String, String>> getReportCount(@Param("departId") String departId, @Param("month") String month, |
28 | @Param("reportName") String reportName); | 28 | @Param("reportName") String reportName); |
29 | |||
30 | Map<String, Object> getSdyData(@Param("view2119") String view2119, @Param("view3a24") String view3a24, | ||
31 | @Param("departId") String departId, @Param("dateTime") String dateTime); | ||
29 | } | 32 | } | ... | ... |
... | @@ -128,4 +128,21 @@ | ... | @@ -128,4 +128,21 @@ |
128 | depart_id = #{departId} | 128 | depart_id = #{departId} |
129 | AND time LIKE CONCAT(#{month},'%') | 129 | AND time LIKE CONCAT(#{month},'%') |
130 | </select> | 130 | </select> |
131 | |||
132 | <select id="getSdyData" resultType="java.util.HashMap"> | ||
133 | select | ||
134 | ROUND(SUM(v.CSL)/10000,2) AS CLSL, | ||
135 | v3.DLHJ, | ||
136 | v3.YJHJ | ||
137 | from ${view2119} v | ||
138 | LEFT JOIN (select ROUND(SUM(v.DLHJ),2) AS DLHJ,ROUND(SUM(IFNULL(v.PAMRJ,0)+ | ||
139 | IFNULL(v.SCLPAMZ,0)+IFNULL(v.SCLPAMF,0)+IFNULL(v.NACLO,0)+IFNULL(v.PACGT,0)+ | ||
140 | IFNULL(v.PACYT,0)+IFNULL(v.PFS,0)+IFNULL(v.FHTY,0)+IFNULL(v.RYXNJ,0)+IFNULL(v.YWL,0)+ | ||
141 | IFNULL(v.GXCLJ,0)+IFNULL(v.CH3COONA,0)+IFNULL(v.HXT,0)+IFNULL(v.FECL3,0)+IFNULL(v.SH,0)+ | ||
142 | IFNULL(v.CH3COOH,0)+IFNULL(v.FESO4G,0)+IFNULL(v.FESO4Y,0)+IFNULL(v.H2O2,0)),2) AS YJHJ, | ||
143 | v.depart_id,v.time | ||
144 | from ${view3a24} v where v.depart_id = #{departId} and v.time like CONCAT(#{dateTime},'%')) v3 | ||
145 | ON v.depart_id = v3.depart_id | ||
146 | where v.depart_id = #{departId} and v.time like CONCAT(#{dateTime},'%') | ||
147 | </select> | ||
131 | </mapper> | 148 | </mapper> | ... | ... |
-
请 注册 或 登录 后发表评论