| Line 231... |
Line 231... |
| 231 |
FileInputStream iFile = new FileInputStream(new File(file.getAbsolutePath()));
|
231 |
FileInputStream iFile = new FileInputStream(new File(file.getAbsolutePath()));
|
| 232 |
HSSFWorkbook workbook = new HSSFWorkbook(iFile);
|
232 |
HSSFWorkbook workbook = new HSSFWorkbook(iFile);
|
| 233 |
HSSFSheet sheet = workbook.getSheetAt(0);
|
233 |
HSSFSheet sheet = workbook.getSheetAt(0);
|
| 234 |
Map<Long,CompetitorPricing> itemScrapingMap = new HashMap<Long,CompetitorPricing>();
|
234 |
Map<Long,CompetitorPricing> itemScrapingMap = new HashMap<Long,CompetitorPricing>();
|
| 235 |
for (int iterator=(sheet.getFirstRowNum()+1);iterator<=sheet.getLastRowNum();iterator++){
|
235 |
for (int iterator=(sheet.getFirstRowNum()+1);iterator<=sheet.getLastRowNum();iterator++){
|
| - |
|
236 |
if (sheet.getLastRowNum()-1>100){
|
| - |
|
237 |
logger.info("Greater than 100, returning");
|
| - |
|
238 |
addActionError("Sku's cant be greater than 100");
|
| - |
|
239 |
return "redirect";
|
| - |
|
240 |
}
|
| 236 |
CompetitorPricing cp = new CompetitorPricing();
|
241 |
CompetitorPricing cp = new CompetitorPricing();
|
| 237 |
if (checkEmptyString(sheet.getRow(iterator).getCell(0))){
|
242 |
if (checkEmptyString(sheet.getRow(iterator).getCell(0))){
|
| 238 |
continue;
|
243 |
continue;
|
| 239 |
}
|
244 |
}
|
| 240 |
else {
|
245 |
else {
|