Subversion Repositories SmartDukaan

Rev

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

Rev 10035 Rev 10036
Line 69... Line 69...
69
	{
69
	{
70
		sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
70
		sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
71
		emailFromAddress = "build@shop2020.in";
71
		emailFromAddress = "build@shop2020.in";
72
		password = "cafe@nes";
72
		password = "cafe@nes";
73
		mailer = new GmailUtils();
73
		mailer = new GmailUtils();
74
		sendTo = new String[]{"vikram.raghav@shop2020.in"};
74
		//sendTo = new String[]{"vikram.raghav@shop2020.in"};
75
		/*sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
75
		sendTo = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
76
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
76
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
77
				"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
77
				"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
78
		*/List<String> flipkartorderids = null;
78
		List<String> flipkartorderids = null;
79
		 Client catalogServiceClient = null;
79
		 Client catalogServiceClient = null;
80
		 try {
80
		 try {
81
			 catalogServiceClient = new CatalogClient().getClient();
81
			 catalogServiceClient = new CatalogClient().getClient();
82
		 } catch (TTransportException e) {
82
		 } catch (TTransportException e) {
83
			 e.printStackTrace();
83
			 e.printStackTrace();
Line 240... Line 240...
240
			}
240
			}
241
			catch (TTransportException e) {
241
			catch (TTransportException e) {
242
				logisticsServiceClient = new LogisticsClient("logistics_service_prod_server_host","logistics_service_prod_server_port");
242
				logisticsServiceClient = new LogisticsClient("logistics_service_prod_server_host","logistics_service_prod_server_port");
243
				logisticsClient = logisticsServiceClient.getClient();
243
				logisticsClient = logisticsServiceClient.getClient();
244
			} 
244
			} 
245
			stock = 0;
-
 
246
			jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
245
			jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
247
					"\","+"\"attributeValues\""+":"+
246
					"\","+"\"attributeValues\""+":"+
248
					"{\"procurement_sla\""+":"+"\""+logisticinfo.getShippingTime()+
247
					"{\"procurement_sla\""+":"+"\""+logisticinfo.getShippingTime()+
249
					"\","+"\"stock_count\""+":"+"\""+stock+"\""+"}}");
248
					"\","+"\"stock_count\""+":"+"\""+stock+"\""+"}}");
250
			item = aliveItemsMap.get(entry.getValue().getId());
249
			item = aliveItemsMap.get(entry.getValue().getId());