鞍钢鲅鱼圈能源管控系统后端代码
liriming
2 天以前 2debc39d13bdce031221294b19750eea8ed53d49
ansteel-biz/src/main/java/com/iailab/module/ansteel/coking/service/impl/CokingOverviewServiceImpl.java
@@ -72,7 +72,7 @@
        QueryWrapper<CokingOverviewEntity> queryWrapperMonth = new QueryWrapper<>();
        queryWrapperMonth.eq("process_type", processType);
        queryWrapperMonth.between("clock", monthStartClock,clock);
        queryWrapperMonth.select("sub_process_type","ROUND(SUM(steam_p)*30/count(*), 2) as steam_p","ROUND(SUM(dj_steam_p)*30/count(*), 2) as dj_steam_p","ROUND(SUM(steam_c)*30/count(*), 2) as steam_c","ROUND(SUM(steam_only_c)*30/count(*), 2) as steam_only_c","ROUND(SUM(steam_v)*30/count(*), 2) as steam_v","ROUND(SUM(gas_p)*30/count(*), 2) as gas_p","ROUND(SUM(gas_c)*30/count(*), 2) as gas_c","ROUND(SUM(power_c)*30/count(*), 2) as power_c","ROUND(SUM(power_only_c)*30/count(*), 2) as power_only_c","ROUND(SUM(power_c_standard)*30/count(*), 2) as power_c_standard","ROUND(SUM(idle_time)*30/count(*), 2) as idle_time","ROUND(SUM(bfg_c)*30/count(*), 2) as bfg_c","ROUND(SUM(cog_p)*30/count(*), 2) as cog_p","ROUND(SUM(cog_c)*30/count(*), 2) as cog_c","ROUND(SUM(bfg_only_c)*30/count(*), 2) as bfg_only_c","ROUND(SUM(cog_only_c)*30/count(*), 2) as cog_only_c","ROUND(SUM(gxls)*30/count(*), 0) as gxls")
        queryWrapperMonth.select("sub_process_type","ROUND(AVG(steam_p)*30, 2) as steam_p","ROUND(AVG(dj_steam_p)*30, 2) as dj_steam_p","ROUND(AVG(steam_c)*30, 2) as steam_c","ROUND(AVG(steam_only_c)*30, 2) as steam_only_c","ROUND(AVG(steam_v)*30, 2) as steam_v","ROUND(AVG(gas_p)*30, 2) as gas_p","ROUND(AVG(gas_c)*30, 2) as gas_c","ROUND(AVG(power_c)*30, 2) as power_c","ROUND(AVG(power_p)*30, 2) as power_p","ROUND(AVG(power_only_c)*30, 2) as power_only_c","ROUND(AVG(power_c_standard)*30, 2) as power_c_standard","ROUND(AVG(idle_time)*30, 0) as idle_time","ROUND(AVG(bfg_c)*30, 2) as bfg_c","ROUND(AVG(cog_p)*30, 2) as cog_p","ROUND(AVG(cog_c)*30, 2) as cog_c","ROUND(AVG(bfg_only_c)*30, 2) as bfg_only_c","ROUND(AVG(cog_only_c)*30, 2) as cog_only_c","ROUND(AVG(gxls)*30, 0) as gxls","ROUND(AVG(run_time)*30, 0) as run_time","ROUND(AVG(work_ratio), 2) as work_ratio")
                .groupBy("sub_process_type");
        List<CokingOverviewEntity> monthList = cokingOverviewDao.selectList(queryWrapperMonth);