|
@@ -2233,6 +2233,42 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取月数值
|
|
|
+ *
|
|
|
+ * @param monthIndex
|
|
|
+ * @param clazz
|
|
|
+ * @param tableDatum
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ private String getMonthValue(int monthIndex, Class clazz, MonthlyProductionReportVO tableDatum) {
|
|
|
+ Method getMethod = null;
|
|
|
+ String monthValue = "";
|
|
|
+ try {
|
|
|
+ if (monthIndex == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
+ if (monthIndex == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
+ if (monthIndex == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
+ if (monthIndex == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
+ if (monthIndex == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
+ if (monthIndex == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
+ if (monthIndex == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
+ if (monthIndex == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
+ if (monthIndex == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
+ if (monthIndex == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
+ if (monthIndex == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
+ if (monthIndex == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
+ monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
+ } catch (NoSuchMethodException e1){
|
|
|
+ e1.printStackTrace();
|
|
|
+ } catch (IllegalAccessException e2) {
|
|
|
+ e2.printStackTrace();
|
|
|
+ } catch (InvocationTargetException e3) {
|
|
|
+ e3.printStackTrace();
|
|
|
+ } finally {
|
|
|
+ return monthValue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 修改Eligible Product Rate
|
|
|
*/
|
|
@@ -2253,29 +2289,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -2332,53 +2346,31 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if ("cracker_consumption_ia".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionIa(monthValue);
|
|
|
- }
|
|
|
- if ("cracker_consumption_pww".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionPww(monthValue);
|
|
|
- }
|
|
|
- if ("cracker_consumption_cnww".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionCnww(monthValue);
|
|
|
- }
|
|
|
- if ("cracker_consumption_dww".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionDww(monthValue);
|
|
|
- }
|
|
|
- if ("cracker_consumption_wo".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionWo(monthValue);
|
|
|
- }
|
|
|
- if ("cracker_consumption_pw".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionPw(monthValue);
|
|
|
- }
|
|
|
- if ("cracker_consumption_ng".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCrackerConsumptionNg(monthValue);
|
|
|
- }
|
|
|
+ if ("fuel_gas_offgas_cracker".equals(tableDatum.getDictLabel())) { report.setFuelGasOffgasCracker(monthValue); }
|
|
|
+ if ("shp_cracker".equals(tableDatum.getDictLabel())) { report.setShpCracker(monthValue); }
|
|
|
+ if ("hp_cracker".equals(tableDatum.getDictLabel())) { report.setHpCracker(monthValue); }
|
|
|
+ if ("mp_cracker".equals(tableDatum.getDictLabel())) { report.setMpCracker(monthValue); }
|
|
|
+ if ("lp_cracker".equals(tableDatum.getDictLabel())) { report.setLpCracker(monthValue); }
|
|
|
+ if ("electricity_cracker".equals(tableDatum.getDictLabel())) { report.setElectricityCracker(monthValue); }
|
|
|
+ if ("cooling_water_cracker".equals(tableDatum.getDictLabel())) { report.setCoolingWaterCracker(monthValue); }
|
|
|
+ if ("cracker_consumption_ia".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionIa(monthValue); }
|
|
|
+ if ("pa_ia_cracker".equals(tableDatum.getDictLabel())) { report.setPaIaCracker(monthValue); }
|
|
|
+ if ("n2_cracker".equals(tableDatum.getDictLabel())) { report.setN2Cracker(monthValue); }
|
|
|
+ if ("hp_bfw_cracker".equals(tableDatum.getDictLabel())) { report.setHpBfwCracker(monthValue); }
|
|
|
+ if ("polished_con_cracker".equals(tableDatum.getDictLabel())) { report.setPolishedConCracker(monthValue); }
|
|
|
+ if ("cracker_consumption_pww".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionPww(monthValue); }
|
|
|
+ if ("turbine_con_cracker".equals(tableDatum.getDictLabel())) { report.setTurbineConCracker(monthValue); }
|
|
|
+ if ("cracker_consumption_cnww".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionCnww(monthValue); }
|
|
|
+ if ("cracker_consumption_dww".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionDww(monthValue); }
|
|
|
+ if ("cracker_consumption_wo".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionWo(monthValue); }
|
|
|
+ if ("cracker_consumption_pw".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionPw(monthValue); }
|
|
|
+ if ("prod_water_cracker".equals(tableDatum.getDictLabel())) { report.setProdWaterCracker(monthValue); }
|
|
|
+ if ("cracker_consumption_ng".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionNg(monthValue); }
|
|
|
+ if ("cracker_consumption_offgas".equals(tableDatum.getDictLabel())) { report.setCrackerConsumptionOffgas(monthValue); }
|
|
|
// 当前报告年份
|
|
|
int reportYear = Integer.parseInt(report.getReportYear().toString());
|
|
|
// 当前报告月份
|
|
@@ -2423,47 +2415,26 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if ("aromatics_consumption_pw".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setAromaticsConsumptionPw(monthValue);
|
|
|
- }
|
|
|
- if ("aromatics_consumption_cww".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setAromaticsConsumptionCww(monthValue);
|
|
|
- }
|
|
|
- if ("aromatics_consumption_pww".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setAromaticsConsumptionPww(monthValue);
|
|
|
- }
|
|
|
- if ("aromatics_consumption_dww".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setAromaticsConsumptionDww(monthValue);
|
|
|
- }
|
|
|
- if ("aromatics_consumption_wl".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setAromaticsConsumptionWl(monthValue);
|
|
|
- }
|
|
|
+ if ("shp_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setShpPguAeu(monthValue); }
|
|
|
+ if ("hp_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setHpPguAeu(monthValue); }
|
|
|
+ if ("mp_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setMpPguAeu(monthValue); }
|
|
|
+ if ("lp_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setLpPguAeu(monthValue); }
|
|
|
+ if ("electricity_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setElectricityPguAeu(monthValue); }
|
|
|
+ if ("cooling_water_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setCoolingWaterPguAeu(monthValue); }
|
|
|
+ if ("aromatics_consumption_pw".equals(tableDatum.getDictLabel())) { report.setAromaticsConsumptionPw(monthValue); }
|
|
|
+ if ("prod_water_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setProdWaterPguAeu(monthValue); }
|
|
|
+ if ("hp_bfw_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setHpBfwPguAeu(monthValue); }
|
|
|
+ if ("n2_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setN2PguAeu(monthValue); }
|
|
|
+ if ("pa_ia_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setPaIaPguAeu(monthValue); }
|
|
|
+ if ("turbine_con_pgu_aeu".equals(tableDatum.getDictLabel())) { report.setTurbineConPguAeu(monthValue); }
|
|
|
+ if ("aromatics_consumption_cww".equals(tableDatum.getDictLabel())) { report.setAromaticsConsumptionCww(monthValue); }
|
|
|
+ if ("aromatics_consumption_pww".equals(tableDatum.getDictLabel())) { report.setAromaticsConsumptionPww(monthValue); }
|
|
|
+ if ("aromatics_consumption_dww".equals(tableDatum.getDictLabel())) { report.setAromaticsConsumptionDww(monthValue); }
|
|
|
+ if ("aromatics_consumption_wl".equals(tableDatum.getDictLabel())) { report.setAromaticsConsumptionWl(monthValue); }
|
|
|
// 当前报告年份
|
|
|
int reportYear = Integer.parseInt(report.getReportYear().toString());
|
|
|
// 当前报告月份
|
|
@@ -2508,29 +2479,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -2564,6 +2513,12 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
if ("shutdouwn_oth".equals(tableDatum.getDictLabel())) {
|
|
|
report.setShutdouwnOth(monthValue);
|
|
|
}
|
|
|
+ if ("shutdouwn_tt".equals(tableDatum.getDictLabel())) {
|
|
|
+ report.setShutdouwnTt(monthValue);
|
|
|
+ }
|
|
|
+ if ("shutdouwn_th".equals(tableDatum.getDictLabel())) {
|
|
|
+ report.setShutdouwnTh(monthValue);
|
|
|
+ }
|
|
|
// 当前报告年份
|
|
|
int reportYear = Integer.parseInt(report.getReportYear().toString());
|
|
|
// 当前报告月份
|
|
@@ -2608,35 +2563,14 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if ("calendar_day".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setCalendarDay(monthValue);
|
|
|
- }
|
|
|
+ if ("run_hour".equals(tableDatum.getDictLabel())) { report.setRunHour(monthValue); }
|
|
|
+ if ("run_rate".equals(tableDatum.getDictLabel())) { report.setRunRate(monthValue); }
|
|
|
+ if ("calendar_hour".equals(tableDatum.getDictLabel())) { report.setCalendarHour(monthValue); }
|
|
|
+ if ("calendar_day".equals(tableDatum.getDictLabel())) { report.setCalendarDay(monthValue); }
|
|
|
// 当前报告年份
|
|
|
int reportYear = Integer.parseInt(report.getReportYear().toString());
|
|
|
// 当前报告月份
|
|
@@ -2681,29 +2615,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -2808,29 +2720,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -2866,7 +2756,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
*/
|
|
|
@Override
|
|
|
public int updateSUBUtilityConsumption(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
-// 受影响行数
|
|
|
+ // 受影响行数
|
|
|
int affectedRows = 0;
|
|
|
List<MonthlyProductionReportVO> tableData = monthlyUpdateVO.getTableData();
|
|
|
long year = monthlyUpdateVO.getYear();
|
|
@@ -2881,56 +2771,36 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if ("sub_con_lpg".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConLpg(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_hppa".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConHppa(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_hp_steam_fr_sub_net".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConHpSteamFrSubNet(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_eo_eg_purge_gas".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConEoEgPurgeGas(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_h2_fr_syngas_as_fule".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConH2FrSyngasAsFule(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_hp_product".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConHpProduct(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_sub1_fg_fic1302".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConSub1FgFic1302(monthValue);
|
|
|
- }
|
|
|
- if ("sub_con_sub2_fg_fic2302".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setSubConSub2FgFic2302(monthValue);
|
|
|
- }
|
|
|
+ if ("sub_con_electric".equals(tableDatum.getDictLabel())) { report.setSubConElectric(monthValue); }
|
|
|
+ if ("sub_con_ng".equals(tableDatum.getDictLabel())) { report.setSubConNg(monthValue); }
|
|
|
+ if ("sub_con_fg_fr_eu".equals(tableDatum.getDictLabel())) { report.setSubConFgFrEu(monthValue); }
|
|
|
+ if ("sub_con_lpg".equals(tableDatum.getDictLabel())) { report.setSubConLpg(monthValue); }
|
|
|
+ if ("sub_con_hhp_steam".equals(tableDatum.getDictLabel())) { report.setSubConHhpSteam(monthValue); }
|
|
|
+ if ("sub_con_mp_steam".equals(tableDatum.getDictLabel())) { report.setSubConMpSteam(monthValue); }
|
|
|
+ if ("sub_con_lp_steam".equals(tableDatum.getDictLabel())) { report.setSubConLpSteam(monthValue); }
|
|
|
+ if ("sub_con_p_condensate".equals(tableDatum.getDictLabel())) { report.setSubConPCondensate(monthValue); }
|
|
|
+ if ("sub_con_cw".equals(tableDatum.getDictLabel())) { report.setSubConCw(monthValue); }
|
|
|
+ if ("sub_con_n2".equals(tableDatum.getDictLabel())) { report.setSubConN2(monthValue); }
|
|
|
+ if ("sub_con_ia_pa".equals(tableDatum.getDictLabel())) { report.setSubConIaPa(monthValue); }
|
|
|
+ if ("sub_con_hppa".equals(tableDatum.getDictLabel())) { report.setSubConHppa(monthValue); }
|
|
|
+ if ("sub_con_production_water".equals(tableDatum.getDictLabel())) { report.setSubConProductionWater(monthValue); }
|
|
|
+ if ("sub_con_hp_steam_fr_sub_net".equals(tableDatum.getDictLabel())) { report.setSubConHpSteamFrSubNet(monthValue); }
|
|
|
+ if ("sub_con_bfw".equals(tableDatum.getDictLabel())) { report.setSubConBfw(monthValue); }
|
|
|
+ if ("sub_con_eo_eg_purge_gas".equals(tableDatum.getDictLabel())) { report.setSubConEoEgPurgeGas(monthValue); }
|
|
|
+ if ("sub_con_h2_fr_syngas_as_fule".equals(tableDatum.getDictLabel())) { report.setSubConH2FrSyngasAsFule(monthValue); }
|
|
|
+ if ("sub_con_hp_product".equals(tableDatum.getDictLabel())) { report.setSubConHpProduct(monthValue); }
|
|
|
+ if ("sub_con_sub1_fg_fic1302".equals(tableDatum.getDictLabel())) { report.setSubConSub1FgFic1302(monthValue); }
|
|
|
+ if ("sub_con_sub2_fg_fic2302".equals(tableDatum.getDictLabel())) { report.setSubConSub2FgFic2302(monthValue); }
|
|
|
+ if ("sub_con_total_ng_fc3702".equals(tableDatum.getDictLabel())) { report.setSubConTotalNgFc3702(monthValue); }
|
|
|
+ if ("sub_con_cost_output".equals(tableDatum.getDictLabel())) { report.setSubConCostOutput(monthValue); }
|
|
|
+ if ("sub_con_zfy".equals(tableDatum.getDictLabel())) { report.setSubConZfy(monthValue); }
|
|
|
+ if ("sub_con_gljcl".equals(tableDatum.getDictLabel())) { report.setSubConGljcl(monthValue); }
|
|
|
+ if ("sub_con_cc".equals(tableDatum.getDictLabel())) { report.setSubConCc(monthValue); }
|
|
|
+ if ("sub_con_sc".equals(tableDatum.getDictLabel())) { report.setSubConSc(monthValue); }
|
|
|
// 当前报告年份
|
|
|
int reportYear = Integer.parseInt(report.getReportYear().toString());
|
|
|
// 当前报告月份
|
|
@@ -2975,29 +2845,7 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -3096,53 +2944,25 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
TMonthlyProductionReport report = new TMonthlyProductionReport();
|
|
|
report.setReportMonth((long)(i + 1));
|
|
|
report.setReportYear(year);
|
|
|
- Method getMethod = null;
|
|
|
- String monthValue = null;
|
|
|
- try {
|
|
|
- if (i == 0) { getMethod = clazz.getDeclaredMethod("getJan"); }
|
|
|
- if (i == 1) { getMethod = clazz.getDeclaredMethod("getFeb"); }
|
|
|
- if (i == 2) { getMethod = clazz.getDeclaredMethod("getMar"); }
|
|
|
- if (i == 3) { getMethod = clazz.getDeclaredMethod("getApr"); }
|
|
|
- if (i == 4) { getMethod = clazz.getDeclaredMethod("getMay"); }
|
|
|
- if (i == 5) { getMethod = clazz.getDeclaredMethod("getJun"); }
|
|
|
- if (i == 6) { getMethod = clazz.getDeclaredMethod("getJul"); }
|
|
|
- if (i == 7) { getMethod = clazz.getDeclaredMethod("getAug"); }
|
|
|
- if (i == 8) { getMethod = clazz.getDeclaredMethod("getSep"); }
|
|
|
- if (i == 9) { getMethod = clazz.getDeclaredMethod("getOct"); }
|
|
|
- if (i == 10) { getMethod = clazz.getDeclaredMethod("getNov"); }
|
|
|
- if (i == 11) { getMethod = clazz.getDeclaredMethod("getDec"); }
|
|
|
- monthValue = (String) getMethod.invoke(tableDatum);
|
|
|
- } catch (NoSuchMethodException e1){
|
|
|
- e1.printStackTrace();
|
|
|
- } catch (IllegalAccessException e2) {
|
|
|
- e2.printStackTrace();
|
|
|
- } catch (InvocationTargetException e3) {
|
|
|
- e3.printStackTrace();
|
|
|
- }
|
|
|
+ String monthValue = this.getMonthValue(i, clazz, tableDatum);
|
|
|
if (monthValue == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if ("kbi_c2_c3_target".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiC2C3Target(monthValue);
|
|
|
- }
|
|
|
- if ("kbi_c2_c3_target2".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiC2C3Target2(monthValue);
|
|
|
- }
|
|
|
- if ("kbi_c2_target".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiC2Target(monthValue);
|
|
|
- }
|
|
|
- if ("kbi_c2_target2".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiC2Target2(monthValue);
|
|
|
- }
|
|
|
- if ("kbi_lti".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiLti(monthValue);
|
|
|
- }
|
|
|
- if ("kbi_btx_target".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiBtxTarget(monthValue);
|
|
|
- }
|
|
|
- if ("kbi_btx_target2".equals(tableDatum.getDictLabel())) {
|
|
|
- report.setKbiBtxTarget2(monthValue);
|
|
|
- }
|
|
|
+ if ("kbi_pcur".equals(tableDatum.getDictLabel())) { report.setKbiPcur(monthValue); }
|
|
|
+ if ("kbi_energy_consumption".equals(tableDatum.getDictLabel())) { report.setKbiEnergyConsumption(monthValue); }
|
|
|
+ if ("kbi_pepc".equals(tableDatum.getDictLabel())) { report.setKbiPepc(monthValue); }
|
|
|
+ if ("kbi_c2_c3_production".equals(tableDatum.getDictLabel())) { report.setKbiC2C3Production(monthValue); }
|
|
|
+ if ("kbi_c2_c3_target".equals(tableDatum.getDictLabel())) { report.setKbiC2C3Target(monthValue); }
|
|
|
+ if ("kbi_c2_c3_target2".equals(tableDatum.getDictLabel())) { report.setKbiC2C3Target2(monthValue); }
|
|
|
+ if ("kbi_c2_target".equals(tableDatum.getDictLabel())) { report.setKbiC2Target(monthValue); }
|
|
|
+ if ("kbi_c2_target2".equals(tableDatum.getDictLabel())) { report.setKbiC2Target2(monthValue); }
|
|
|
+ if ("kbi_lti".equals(tableDatum.getDictLabel())) { report.setKbiLti(monthValue); }
|
|
|
+ if ("kbi_yepbf".equals(tableDatum.getDictLabel())) { report.setKbiYepbf(monthValue); }
|
|
|
+ if ("kbi_yebf".equals(tableDatum.getDictLabel())) { report.setKbiYebf(monthValue); }
|
|
|
+ if ("kbi_aeu_energy_consumption".equals(tableDatum.getDictLabel())) { report.setKbiAeuEnergyConsumption(monthValue); }
|
|
|
+ if ("kbi_btx_production".equals(tableDatum.getDictLabel())) { report.setKbiBtxProduction(monthValue); }
|
|
|
+ if ("kbi_btx_target".equals(tableDatum.getDictLabel())) { report.setKbiBtxTarget(monthValue); }
|
|
|
+ if ("kbi_btx_target2".equals(tableDatum.getDictLabel())) { report.setKbiBtxTarget2(monthValue); }
|
|
|
// 当前报告年份
|
|
|
int reportYear = Integer.parseInt(report.getReportYear().toString());
|
|
|
// 当前报告月份
|
|
@@ -3167,6 +2987,78 @@ public class TMonthlyProductionReportServiceImpl implements ITMonthlyProductionR
|
|
|
return affectedRows;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public int updateCrackerRawMaterial(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateCrackerOutputProduct(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateAromaticsRawMaterial(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateAromaticsOutputProduct(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateProductYield(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateCrackerEnergyConsumption(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateAromaticsEnergyConsumption(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updatePlantLoad(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateOtherside(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateSctuUtilityConsumption(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int updateSummary(MonthlyUpdateVO monthlyUpdateVO) {
|
|
|
+ // TODO
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出Excel
|
|
|
+ *
|
|
|
+ * @param year
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Override
|
|
|
public AjaxResult export(Long year) {
|
|
|
// 根据年份查询月报数据
|