Subversion Repositories SmartDukaan

Rev

Rev 12460 | Rev 12586 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12460 Rev 12504
Line 359... Line 359...
359
        }
359
        }
360
        String str;
360
        String str;
361
        int lineNumber = 0;
361
        int lineNumber = 0;
362
        while ((str = reader.readLine()) != null) {
362
        while ((str = reader.readLine()) != null) {
363
            lineNumber++;
363
            lineNumber++;
364
            if (str.trim().length() == 0 || lineNumber<4) {
364
            if (str.trim().length() == 0 || lineNumber<2) {
365
                continue;
365
                continue;
366
            }
366
            }
367
 
367
 
368
            String[] values = str.split("\t");
368
            String[] values = str.split("\t");
369
            AmazonPromotion amazonPromotion = new AmazonPromotion();
369
            AmazonPromotion amazonPromotion = new AmazonPromotion();
Line 777... Line 777...
777
 
777
 
778
            if (!checkEmptyString(sheet.getRow(iterator).getCell(12))){
778
            if (!checkEmptyString(sheet.getRow(iterator).getCell(12))){
779
                String fbbTaxCode = sheet.getRow(iterator).getCell(12).getStringCellValue();
779
                String fbbTaxCode = sheet.getRow(iterator).getCell(12).getStringCellValue();
780
                amazonlisted.setFbbtaxCode(fbbTaxCode);
780
                amazonlisted.setFbbtaxCode(fbbTaxCode);
781
            }
781
            }
-
 
782
            
-
 
783
            if (!checkEmptyString(sheet.getRow(iterator).getCell(13))){
-
 
784
                double otherCost = sheet.getRow(iterator).getCell(13).getNumericCellValue();
-
 
785
                amazonlisted.setOtherCost(otherCost);
-
 
786
            }
782
 
787
 
783
            amazonBulkUpdate.put(sku, amazonlisted);
788
            amazonBulkUpdate.put(sku, amazonlisted);
784
        }
789
        }
785
        logger.info("Amazon Bulk Map "+amazonBulkUpdate.toString());
790
        logger.info("Amazon Bulk Map "+amazonBulkUpdate.toString());
786
        CatalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
791
        CatalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();