|
@@ -411,7 +411,6 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setLossPercentage(this.getCellDataString(sheet, 41, 2));
|
|
|
tDailyProductionReport.setPguTotalFeed(this.getCellDataString(sheet, 41, 6));
|
|
|
tDailyProductionReport.setPguC5YeildPercentage(this.getCellDataString(sheet, 41, 10));
|
|
|
- tDailyProductionReport.setPguC5Inventory(this.getCellDataString(sheet, 41, 11));
|
|
|
tDailyProductionReport.setPguC5Export(this.getCellDataString(sheet, 41, 12));
|
|
|
tDailyProductionReport.setAeuC6C8NaToEu(this.getCellDataString(sheet, 41, 20));
|
|
|
tDailyProductionReport.setAeuC6C8NaToYpc(this.getCellDataString(sheet, 41, 21));
|
|
@@ -420,7 +419,7 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setTotalFurnanceFeed(this.getCellDataString(sheet, 42, 2));
|
|
|
tDailyProductionReport.setPguOutput(this.getCellDataString(sheet, 42, 6));
|
|
|
tDailyProductionReport.setPguC5Produced(this.getCellDataString(sheet, 42, 10));
|
|
|
- tDailyProductionReport.setPguC5Change(this.getCellDataString(sheet, 42, 11));
|
|
|
+ tDailyProductionReport.setPguC5RaffInput(this.getCellDataString(sheet, 42, 11));
|
|
|
tDailyProductionReport.setPguC5ToAeu(this.getCellDataString(sheet, 42, 12));
|
|
|
tDailyProductionReport.setPguC5ToEu(this.getCellDataString(sheet, 42, 13));
|
|
|
tDailyProductionReport.setPguC5ToYuanguan(this.getCellDataString(sheet, 42, 14));
|
|
@@ -478,12 +477,12 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setHhpSctuFlare(this.getCellDataString(sheet, 52, 13));
|
|
|
tDailyProductionReport.setHhpSub(this.getCellDataString(sheet, 52, 14));
|
|
|
tDailyProductionReport.setHhpBcc(this.getCellDataString(sheet, 52, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTotalC3(this.getCellDataString(sheet, 50, 16));
|
|
|
- tDailyProductionReport.setSctfStorageTk1011(this.getCellDataString(sheet, 50, 17));
|
|
|
- tDailyProductionReport.setSctfStorageTk1012(this.getCellDataString(sheet, 50, 18));
|
|
|
- tDailyProductionReport.setSctfStorageTk1013(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageTk1014(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageTk1040Off(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTotalC3(this.getCellDataString(sheet, 52, 16));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1011(this.getCellDataString(sheet, 52, 17));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1012(this.getCellDataString(sheet, 52, 18));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1013(this.getCellDataString(sheet, 52, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1014(this.getCellDataString(sheet, 52, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1040Off(this.getCellDataString(sheet, 52, 21));
|
|
|
|
|
|
// rowIndex = 53
|
|
|
tDailyProductionReport.setNgToe(this.getCellDataString(sheet, 53, 2));
|
|
@@ -516,12 +515,12 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setFuelGasOffgasSctuFlare(this.getCellDataString(sheet, 54, 13));
|
|
|
tDailyProductionReport.setFuelGasOffgasSub(this.getCellDataString(sheet, 54, 14));
|
|
|
tDailyProductionReport.setFuelGasOffgasBcc(this.getCellDataString(sheet, 54, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTk1020Lpg(this.getCellDataString(sheet, 50, 16));
|
|
|
- tDailyProductionReport.setSctfStorageTk1111C4s(this.getCellDataString(sheet, 50, 17));
|
|
|
- tDailyProductionReport.setSctfStorageTk1520Rpg(this.getCellDataString(sheet, 50, 18));
|
|
|
- tDailyProductionReport.setSctfStorageTk1350Po(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageTk1310Btx(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageTk1330Ebo(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1020Lpg(this.getCellDataString(sheet, 54, 16));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1111C4s(this.getCellDataString(sheet, 54, 17));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1520Rpg(this.getCellDataString(sheet, 54, 18));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1350Po(this.getCellDataString(sheet, 54, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1310Btx(this.getCellDataString(sheet, 54, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1330Ebo(this.getCellDataString(sheet, 54, 21));
|
|
|
|
|
|
// rowIndex = 55
|
|
|
tDailyProductionReport.setShpToe(this.getCellDataString(sheet, 55, 2));
|
|
@@ -554,12 +553,12 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setHpSctuFlare(this.getCellDataString(sheet, 56, 13));
|
|
|
tDailyProductionReport.setHpSub(this.getCellDataString(sheet, 56, 14));
|
|
|
tDailyProductionReport.setHpBcc(this.getCellDataString(sheet, 56, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTk1430Lfo(this.getCellDataString(sheet, 50, 16));
|
|
|
- tDailyProductionReport.setSctfStorageTk1320OffBtx(this.getCellDataString(sheet, 50, 17));
|
|
|
- tDailyProductionReport.setSctfStorageT201Btx(this.getCellDataString(sheet, 50, 18));
|
|
|
- tDailyProductionReport.setSctfStorageTk1340C9(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageClt1350C9(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageTk1160Nh3(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1430Lfo(this.getCellDataString(sheet, 56, 16));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1320OffBtx(this.getCellDataString(sheet, 56, 17));
|
|
|
+ tDailyProductionReport.setSctfStorageT201Btx(this.getCellDataString(sheet, 56, 18));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1340C9(this.getCellDataString(sheet, 56, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageClt1350C9(this.getCellDataString(sheet, 56, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1160Nh3(this.getCellDataString(sheet, 56, 21));
|
|
|
|
|
|
// rowIndex = 57
|
|
|
tDailyProductionReport.setMpToe(this.getCellDataString(sheet, 57, 2));
|
|
@@ -592,11 +591,11 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setLpSctuFlare(this.getCellDataString(sheet, 58, 13));
|
|
|
tDailyProductionReport.setLpSub(this.getCellDataString(sheet, 58, 14));
|
|
|
tDailyProductionReport.setLpBcc(this.getCellDataString(sheet, 58, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTk1510B(this.getCellDataString(sheet, 50, 17));
|
|
|
- tDailyProductionReport.setSctfStorageClt1370B(this.getCellDataString(sheet, 50, 18));
|
|
|
- tDailyProductionReport.setSctfStorageTk1360T(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageTk1410X(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageClt1380X(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1510B(this.getCellDataString(sheet, 58, 17));
|
|
|
+ tDailyProductionReport.setSctfStorageClt1370B(this.getCellDataString(sheet, 58, 18));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1360T(this.getCellDataString(sheet, 58, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1410X(this.getCellDataString(sheet, 58, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageClt1380X(this.getCellDataString(sheet, 58, 21));
|
|
|
|
|
|
// rowIndex = 59
|
|
|
tDailyProductionReport.setElectricityToe(this.getCellDataString(sheet, 59, 2));
|
|
@@ -629,10 +628,10 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setCoolingWaterSctuFlare(this.getCellDataString(sheet, 60, 13));
|
|
|
tDailyProductionReport.setCoolingWaterSub(this.getCellDataString(sheet, 60, 14));
|
|
|
tDailyProductionReport.setCoolingWaterBcc(this.getCellDataString(sheet, 60, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTk1420Dimer(this.getCellDataString(sheet, 50, 18));
|
|
|
- tDailyProductionReport.setSctfStorageTk1110R1(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageTk1130Ib(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageTk1150R3(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1420Dimer(this.getCellDataString(sheet, 60, 18));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1110R1(this.getCellDataString(sheet, 60, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1130Ib(this.getCellDataString(sheet, 60, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1150R3(this.getCellDataString(sheet, 60, 21));
|
|
|
|
|
|
// rowIndex = 61
|
|
|
tDailyProductionReport.setPolishedConToe(this.getCellDataString(sheet, 61, 2));
|
|
@@ -665,9 +664,9 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setHpBfwSctuFlare(this.getCellDataString(sheet, 62, 13));
|
|
|
tDailyProductionReport.setHpBfwSub(this.getCellDataString(sheet, 62, 14));
|
|
|
tDailyProductionReport.setHpBfwBcc(this.getCellDataString(sheet, 62, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTk1140Bd(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageTk1141Bd(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageTk1142Bd(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1140Bd(this.getCellDataString(sheet, 62, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1141Bd(this.getCellDataString(sheet, 62, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageTk1142Bd(this.getCellDataString(sheet, 62, 21));
|
|
|
|
|
|
// rowIndex = 63
|
|
|
tDailyProductionReport.setProdWaterToe(this.getCellDataString(sheet, 63, 2));
|
|
@@ -700,10 +699,10 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setTurbineConSctuFlare(this.getCellDataString(sheet, 64, 13));
|
|
|
tDailyProductionReport.setTurbineConSub(this.getCellDataString(sheet, 64, 14));
|
|
|
tDailyProductionReport.setTurbineConBcc(this.getCellDataString(sheet, 64, 15));
|
|
|
- tDailyProductionReport.setSctfStorageTotalNap(this.getCellDataString(sheet, 50, 18));
|
|
|
- tDailyProductionReport.setSctfStorageCltf1621(this.getCellDataString(sheet, 50, 19));
|
|
|
- tDailyProductionReport.setSctfStorageCltf1622(this.getCellDataString(sheet, 50, 20));
|
|
|
- tDailyProductionReport.setSctfStorageCltf1623(this.getCellDataString(sheet, 50, 21));
|
|
|
+ tDailyProductionReport.setSctfStorageTotalNap(this.getCellDataString(sheet, 64, 18));
|
|
|
+ tDailyProductionReport.setSctfStorageCltf1621(this.getCellDataString(sheet, 64, 19));
|
|
|
+ tDailyProductionReport.setSctfStorageCltf1622(this.getCellDataString(sheet, 64, 20));
|
|
|
+ tDailyProductionReport.setSctfStorageCltf1623(this.getCellDataString(sheet, 64, 21));
|
|
|
|
|
|
// rowIndex = 65
|
|
|
tDailyProductionReport.setPaIaToe(this.getCellDataString(sheet, 65, 2));
|
|
@@ -764,10 +763,10 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setTargetPguAeuKgoe(this.getCellDataString(sheet, 68, 11));
|
|
|
tDailyProductionReport.setTargetPguAeuKgce(this.getCellDataString(sheet, 68, 12));
|
|
|
tDailyProductionReport.setLoadPercentage(this.getCellDataString(sheet, 68, 14));
|
|
|
- tDailyProductionReport.setCol320fc2161(this.getCellDataString(sheet, 68, 15));
|
|
|
- tDailyProductionReport.setC210pdi(this.getCellDataString(sheet, 68, 16));
|
|
|
- tDailyProductionReport.setTemperature(this.getCellDataString(sheet, 68, 17));
|
|
|
- tDailyProductionReport.setCrackingFurnaceBurn(this.getCellDataString(sheet, 68, 18));
|
|
|
+ tDailyProductionReport.setCol320fc2161(this.getCellDataString(sheet, 68, 16));
|
|
|
+ tDailyProductionReport.setC210pdi(this.getCellDataString(sheet, 68, 17));
|
|
|
+ tDailyProductionReport.setTemperature(this.getCellDataString(sheet, 68, 18));
|
|
|
+ tDailyProductionReport.setCrackingFurnaceBurn(this.getCellDataString(sheet, 68, 19));
|
|
|
|
|
|
// rowIndex = 69
|
|
|
tDailyProductionReport.setProducedToe(this.getCellDataString(sheet, 69, 2));
|
|
@@ -783,16 +782,22 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
tDailyProductionReport.setProducedPguAeuKgce(this.getCellDataString(sheet, 69, 12));
|
|
|
tDailyProductionReport.setHsProducet(this.getCellDataString(sheet, 69, 14));
|
|
|
|
|
|
- System.out.println(tDailyProductionReport);
|
|
|
+ // 修改小时
|
|
|
+ Date reportDate = tDailyProductionReport.getReportDate();
|
|
|
+ Date fromDate = tDailyProductionReport.getFromDate();
|
|
|
+ Date toDate = tDailyProductionReport.getToDate();
|
|
|
+ tDailyProductionReport.setReportDate(reportDate);
|
|
|
+ tDailyProductionReport.setFromDate(fromDate);
|
|
|
+ tDailyProductionReport.setToDate(toDate);
|
|
|
|
|
|
// 新增一条生产日报记录
|
|
|
-// tDailyProductionReportMapper.insertTDailyProductionReport(tDailyProductionReport);
|
|
|
+ tDailyProductionReportMapper.insertTDailyProductionReport(tDailyProductionReport);
|
|
|
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
private String getCellDataString(Sheet sheet, int rowIndex, int cellIndex) {
|
|
|
- String cellValue = "";
|
|
|
+ String cellData = "";
|
|
|
// 根据行下标,获取行对象
|
|
|
Row row = sheet.getRow(rowIndex);
|
|
|
// 根据列下表,获取单元格对象,如果单元格的值为空,则返回null
|
|
@@ -801,9 +806,12 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
// 设置单元格格式
|
|
|
cell.setCellType(CellType.STRING);
|
|
|
// 获取单元格数据
|
|
|
- cellValue = cell.getStringCellValue();
|
|
|
+ String cellValue = cell.getStringCellValue();
|
|
|
+ // 处理数据格式
|
|
|
+// cellData = this.format(cellValue, type);
|
|
|
+ cellData = cellValue;
|
|
|
}
|
|
|
- return cellValue;
|
|
|
+ return cellData;
|
|
|
}
|
|
|
|
|
|
private Date getCellDataDate(Sheet sheet, int rowIndex, int cellIndex) {
|
|
@@ -814,4 +822,8 @@ public class TDailyProductionReportServiceImpl implements ITDailyProductionRepor
|
|
|
// 获取单元格数据
|
|
|
return cell.getDateCellValue();
|
|
|
}
|
|
|
+
|
|
|
+ private String format(String cellValue, int type) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|