Subversion Repositories SmartDukaan

Rev

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

Rev 12323 Rev 12327
Line 430... Line 430...
430
		}
430
		}
431
		return "flipkart-update-result";
431
		return "flipkart-update-result";
432
	}
432
	}
433
	
433
	
434
	public void updateForAutoPricing() throws NumberFormatException, CatalogServiceException, TException{
434
	public void updateForAutoPricing() throws NumberFormatException, CatalogServiceException, TException{
435
        logger.info("Calling Method to update price at snapdeal for auto pricing");
435
        logger.info("Calling Method to update price at flipkart for auto pricing");
436
        Client catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
436
        Client catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
437
        Item item = catalogClient.getItem(Long.valueOf(itemId));
437
        Item item = catalogClient.getItem(Long.valueOf(itemId));
438
        UpdateFlipkartPricing updateFlipkartPricing = new UpdateFlipkartPricing(Float.valueOf(sellingPrice),fkItemCode,item,System.currentTimeMillis());
438
        UpdateFlipkartPricing updateFlipkartPricing = new UpdateFlipkartPricing(Float.valueOf(sellingPrice),fkItemCode,item,System.currentTimeMillis());
439
        updateFlipkartPricing.start();
439
        updateFlipkartPricing.start();
440
    }
440
    }