| Line 105... |
Line 105... |
| 105 |
}else{
|
105 |
}else{
|
| 106 |
ProfitMandiBusinessException profitMandiBusinessException = new ProfitMandiBusinessException(SUPPORT_PRICE, row.getCell(9).toString(), "TGLSTNG_VE_1010");
|
106 |
ProfitMandiBusinessException profitMandiBusinessException = new ProfitMandiBusinessException(SUPPORT_PRICE, row.getCell(9).toString(), "TGLSTNG_VE_1010");
|
| 107 |
LOGGER.error("Excel file parse error : ", profitMandiBusinessException);
|
107 |
LOGGER.error("Excel file parse error : ", profitMandiBusinessException);
|
| 108 |
throw profitMandiBusinessException;
|
108 |
throw profitMandiBusinessException;
|
| 109 |
}
|
109 |
}
|
| - |
|
110 |
if(row.getCell(10) != null && row.getCell(10).getCellTypeEnum() == CellType.NUMERIC){
|
| - |
|
111 |
tagListing.setMaxDiscountPrice(Double.valueOf(row.getCell(10).toString()).floatValue());
|
| - |
|
112 |
}else{
|
| - |
|
113 |
ProfitMandiBusinessException profitMandiBusinessException = new ProfitMandiBusinessException(SUPPORT_PRICE, row.getCell(10).toString(), "TGLSTNG_VE_1010");
|
| - |
|
114 |
LOGGER.error("Excel file parse error : ", profitMandiBusinessException);
|
| - |
|
115 |
throw profitMandiBusinessException;
|
| - |
|
116 |
}
|
| 110 |
if(row.getCell(10) != null && HSSFDateUtil.isCellDateFormatted(row.getCell(10))){
|
117 |
if(row.getCell(11) != null && HSSFDateUtil.isCellDateFormatted(row.getCell(11))){
|
| 111 |
Date date = row.getCell(10).getDateCellValue();
|
118 |
Date date = row.getCell(10).getDateCellValue();
|
| 112 |
LocalDateTime startDate = LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault());
|
119 |
LocalDateTime startDate = LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault());
|
| 113 |
tagListing.setStartDate(startDate);
|
120 |
tagListing.setStartDate(startDate);
|
| 114 |
}else{
|
121 |
}else{
|
| 115 |
ProfitMandiBusinessException profitMandiBusinessException = new ProfitMandiBusinessException(START_DATE, row.getCell(10).toString(), "TGLSTNG_VE_1010");
|
122 |
ProfitMandiBusinessException profitMandiBusinessException = new ProfitMandiBusinessException(START_DATE, row.getCell(10).toString(), "TGLSTNG_VE_1010");
|