|
@@ -118,7 +118,7 @@ public class ImportExcelNew {
|
|
|
* @throws InvalidFormatException
|
|
|
* @throws IOException
|
|
|
*/
|
|
|
- public List ImportExcelNew(MultipartFile multipartFile, int headerNum, int sheetIndex, String type)
|
|
|
+ public List ImportExcelNews(MultipartFile multipartFile, int headerNum, int sheetIndex, String type)
|
|
|
throws InvalidFormatException, IOException {
|
|
|
return this.list(multipartFile.getOriginalFilename(), multipartFile.getInputStream(), headerNum, sheetIndex, type);
|
|
|
}
|
|
@@ -198,48 +198,52 @@ public class ImportExcelNew {
|
|
|
}
|
|
|
|
|
|
if(sheet.getRow(7).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setDescriptionOfDeduction(sheet.getRow(7).getCell(i).toString());
|
|
|
+ projectReportSignatureInfo.setContractDate(sheet.getRow(7).getCell(i).toString());
|
|
|
}
|
|
|
|
|
|
if(sheet.getRow(8).getCell(i) != null) {
|
|
|
- if(sheet.getRow(8).getCell(i).getCellType()==0) {
|
|
|
- if (HSSFDateUtil.isCellDateFormatted(sheet.getRow(8).getCell(i))) {
|
|
|
- projectReportSignatureInfo.setStampDate(sheet.getRow(8).getCell(i).getDateCellValue());
|
|
|
- }
|
|
|
- }
|
|
|
+ projectReportSignatureInfo.setDescriptionOfDeduction(sheet.getRow(8).getCell(i).toString());
|
|
|
}
|
|
|
+
|
|
|
if(sheet.getRow(9).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setPrintQuantity(sheet.getRow(9).getCell(i).toString());
|
|
|
- }
|
|
|
- if(sheet.getRow(10).getCell(i) != null) {
|
|
|
- if(sheet.getRow(10).getCell(i).getCellType()==0) {
|
|
|
- if (HSSFDateUtil.isCellDateFormatted(sheet.getRow(10).getCell(i))) {
|
|
|
- projectReportSignatureInfo.setAgreedStartDate(sheet.getRow(10).getCell(i).getDateCellValue());
|
|
|
+ if(sheet.getRow(9).getCell(i).getCellType()==0) {
|
|
|
+ if (HSSFDateUtil.isCellDateFormatted(sheet.getRow(9).getCell(i))) {
|
|
|
+ projectReportSignatureInfo.setStampDate(sheet.getRow(9).getCell(i).getDateCellValue());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if(sheet.getRow(10).getCell(i) != null) {
|
|
|
+ projectReportSignatureInfo.setPrintQuantity(sheet.getRow(10).getCell(i).toString());
|
|
|
+ }
|
|
|
if(sheet.getRow(11).getCell(i) != null) {
|
|
|
if(sheet.getRow(11).getCell(i).getCellType()==0) {
|
|
|
if (HSSFDateUtil.isCellDateFormatted(sheet.getRow(11).getCell(i))) {
|
|
|
- projectReportSignatureInfo.setAgreedEndDate(sheet.getRow(11).getCell(i).getDateCellValue());
|
|
|
+ projectReportSignatureInfo.setAgreedStartDate(sheet.getRow(11).getCell(i).getDateCellValue());
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if(sheet.getRow(12).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setConsultant(sheet.getRow(12).getCell(i).toString());
|
|
|
+ if(sheet.getRow(12).getCell(i).getCellType()==0) {
|
|
|
+ if (HSSFDateUtil.isCellDateFormatted(sheet.getRow(12).getCell(i))) {
|
|
|
+ projectReportSignatureInfo.setAgreedEndDate(sheet.getRow(12).getCell(i).getDateCellValue());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
if(sheet.getRow(13).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setSelfCalibrationOpinion(sheet.getRow(13).getCell(i).toString());
|
|
|
+ projectReportSignatureInfo.setConsultant(sheet.getRow(13).getCell(i).toString());
|
|
|
}
|
|
|
if(sheet.getRow(14).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setReviewOpinion(sheet.getRow(14).getCell(i).toString());
|
|
|
+ projectReportSignatureInfo.setSelfCalibrationOpinion(sheet.getRow(14).getCell(i).toString());
|
|
|
}
|
|
|
if(sheet.getRow(15).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setSettlementPricingBasisDocument(sheet.getRow(15).getCell(i).toString());
|
|
|
+ projectReportSignatureInfo.setReviewOpinion(sheet.getRow(15).getCell(i).toString());
|
|
|
}
|
|
|
if(sheet.getRow(16).getCell(i) != null) {
|
|
|
- projectReportSignatureInfo.setCalculateValuationBasisDocument(sheet.getRow(16).getCell(i).toString());
|
|
|
+ projectReportSignatureInfo.setSettlementPricingBasisDocument(sheet.getRow(16).getCell(i).toString());
|
|
|
+ }
|
|
|
+ if(sheet.getRow(17).getCell(i) != null) {
|
|
|
+ projectReportSignatureInfo.setCalculateValuationBasisDocument(sheet.getRow(17).getCell(i).toString());
|
|
|
}
|
|
|
projectReportSignatureInfo.setType("2");
|
|
|
projectReportSignatureInfo.preInsert();
|