|
@@ -1013,6 +1013,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
|
|
+ this.calcAvg(monthlyProductionReportVOs);
|
|
return monthlyProductionReportVOs;
|
|
return monthlyProductionReportVOs;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1171,6 +1172,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
|
|
+ this.calcAvg(monthlyProductionReportVOs);
|
|
return monthlyProductionReportVOs;
|
|
return monthlyProductionReportVOs;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1233,6 +1235,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.calcTotal(monthlyProductionReportVOs);
|
|
this.calcAvg(monthlyProductionReportVOs);
|
|
this.calcAvg(monthlyProductionReportVOs);
|
|
return monthlyProductionReportVOs;
|
|
return monthlyProductionReportVOs;
|
|
}
|
|
}
|
|
@@ -1332,6 +1335,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
|
|
+ this.calcAvg(monthlyProductionReportVOs);
|
|
return monthlyProductionReportVOs;
|
|
return monthlyProductionReportVOs;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1931,20 +1935,20 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
// 前端月报数据集合,每个元素对应当前某个指标的title、unit、1~12月的数据以及年度汇总数据
|
|
// 前端月报数据集合,每个元素对应当前某个指标的title、unit、1~12月的数据以及年度汇总数据
|
|
List<MonthlyProductionReportVO> monthlyProductionReportVOs = new ArrayList<>();
|
|
List<MonthlyProductionReportVO> monthlyProductionReportVOs = new ArrayList<>();
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_pcur","Plant capacity utilization rate","%"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_pcur","Plant capacity utilization rate","%"));
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_energy_consumption","Energy Consumption","%"));
|
|
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_energy_consumption","Energy Consumption","t"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_pepc","Product of Ethylene and Propylene and C4's base FEED","%"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_pepc","Product of Ethylene and Propylene and C4's base FEED","%"));
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_c3_production","C2+C3 Production","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_c3_target","C2+C3 target","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_c3_target2","C2+C3 target","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_target","C2 target","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_target2","C2 target","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_lti","LTI","%"));
|
|
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_c3_production","C2+C3 Production","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_c3_target","C2+C3 target","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_c3_target2","C2+C3 target","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_target","C2 target","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_c2_target2","C2 target","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_lti","LTI","t"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_yepbf","Yields of Ethylene and propylene base on furnace feeds","%"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_yepbf","Yields of Ethylene and propylene base on furnace feeds","%"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_yebf","Yields of Ethylene base on furnace feeds","%"));
|
|
monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_yebf","Yields of Ethylene base on furnace feeds","%"));
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_aeu_energy_consumption","AEU Energy Consumption","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_btx_production","BTX Production","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_btx_target","BTX target","%"));
|
|
|
|
- monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_btx_target2","BTX target","%"));
|
|
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_aeu_energy_consumption","AEU Energy Consumption","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_btx_production","BTX Production","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_btx_target","BTX target","t"));
|
|
|
|
+ monthlyProductionReportVOs.add(new MonthlyProductionReportVO("kbi_btx_target2","BTX target","t"));
|
|
// 遍历从数据库中查出的月报数据集合,结果为0~12条数据不等
|
|
// 遍历从数据库中查出的月报数据集合,结果为0~12条数据不等
|
|
for (int i = 0; i < tMonthlyProductionReports.size(); i++) {
|
|
for (int i = 0; i < tMonthlyProductionReports.size(); i++) {
|
|
TMonthlyProductionReport tMonthlyProductionReport = tMonthlyProductionReports.get(i);
|
|
TMonthlyProductionReport tMonthlyProductionReport = tMonthlyProductionReports.get(i);
|
|
@@ -2011,6 +2015,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
this.calcTotal(monthlyProductionReportVOs);
|
|
|
|
+ this.calcAvg(monthlyProductionReportVOs);
|
|
return monthlyProductionReportVOs;
|
|
return monthlyProductionReportVOs;
|
|
}
|
|
}
|
|
|
|
|