2f319ed0 张雷

运营分析专题修改

1 个父辈 2a158411
...@@ -31,4 +31,8 @@ public interface FactoryOperateCenterMapper { ...@@ -31,4 +31,8 @@ public interface FactoryOperateCenterMapper {
31 @Anonymous 31 @Anonymous
32 Map<String, Object> getSdyData(@Param("view2119") String view2119, @Param("view3a24") String view3a24, 32 Map<String, Object> getSdyData(@Param("view2119") String view2119, @Param("view3a24") String view3a24,
33 @Param("departId") String departId, @Param("dateTime") String dateTime); 33 @Param("departId") String departId, @Param("dateTime") String dateTime);
34
35 List<Map<String, Object>> getDfList(@Param("departId") String departId, @Param("month") String month);
36
37 List<Map<String, Object>> getMbList(@Param("departId") String departId, @Param("year") String year);
34 } 38 }
......
...@@ -148,4 +148,22 @@ ...@@ -148,4 +148,22 @@
148 ON v.depart_id = v3.depart_id 148 ON v.depart_id = v3.depart_id
149 where v.depart_id = #{departId} and v.time like CONCAT(#{dateTime},'%') 149 where v.depart_id = #{departId} and v.time like CONCAT(#{dateTime},'%')
150 </select> 150 </select>
151
152 <select id="getDfList" resultType="java.util.HashMap">
153 select * from report_electric_cost
154 where depart_id in
155 <foreach item="item" index="index" collection="departId.split(',')" open="(" separator="," close=")">
156 #{item}
157 </foreach>
158 AND month = #{month}
159 </select>
160
161 <select id="getMbList" resultType="java.util.HashMap">
162 select * from report_target_config
163 where depart_id in
164 <foreach item="item" index="index" collection="departId.split(',')" open="(" separator="," close=")">
165 #{item}
166 </foreach>
167 AND target_year = #{year}
168 </select>
151 </mapper> 169 </mapper>
......
...@@ -326,6 +326,9 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer ...@@ -326,6 +326,9 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
326 hyMap.put("should",dayCount); 326 hyMap.put("should",dayCount);
327 //电费报表 327 //电费报表
328 map.put("df",new HashMap<>()); 328 map.put("df",new HashMap<>());
329 List<Map<String,Object>> dfList = factoryOperateCenterMapper.getDfList(departId, month);
330 dfd = dfList.size();
331 df = DoubleOperaUtils.bigDecimalRound((100*dfd)/dfs,0);
329 Map<String, Object> dfMap = new HashMap<>(); 332 Map<String, Object> dfMap = new HashMap<>();
330 dfMap.put("bfb",df); 333 dfMap.put("bfb",df);
331 dfMap.put("done",dfd); 334 dfMap.put("done",dfd);
...@@ -340,6 +343,10 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer ...@@ -340,6 +343,10 @@ public class FactoryOperateCenterServiceImpl implements IFactoryOperateCenterSer
340 yyzbMap.put("should",yyzbs); 343 yyzbMap.put("should",yyzbs);
341 //年度目标报表 344 //年度目标报表
342 map.put("ndmb",new HashMap<>()); 345 map.put("ndmb",new HashMap<>());
346 String year = month.split("-")[0];
347 List<Map<String,Object>> mbList = factoryOperateCenterMapper.getMbList(departId, year);
348 ndmbd = mbList.size();
349 ndmb = DoubleOperaUtils.bigDecimalRound((100*ndmbd)/ndmbs,0);
343 Map<String, Object> ndmbMap = new HashMap<>(); 350 Map<String, Object> ndmbMap = new HashMap<>();
344 ndmbMap.put("bfb",ndmb); 351 ndmbMap.put("bfb",ndmb);
345 ndmbMap.put("done",ndmbd); 352 ndmbMap.put("done",ndmbd);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!