Subversion Repositories SmartDukaan

Rev

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

Rev 9545 Rev 9546
Line 561... Line 561...
561
				snapdealitem = snapdealItemMap.get(inventory.getSellerSku());
561
				snapdealitem = snapdealItemMap.get(inventory.getSellerSku());
562
				if(snapdealitem==null){
562
				if(snapdealitem==null){
563
					notMappedItems.add("inventory.getSellerSku() "+inventory.getProductName());
563
					notMappedItems.add("inventory.getSellerSku() "+inventory.getProductName());
564
					continue;
564
					continue;
565
				}
565
				}
566
				//sku = snapdealitem.getItem_id();
566
				sku = snapdealitem.getItem_id();
567
				if(sku!=0){
567
				if(sku!=0){
568
					try{
568
					try{
569
						System.out.println("Fetching created orders");
569
						System.out.println("Fetching created orders");
570
						System.out.println("Last Updated on Time is  " + lastUpdatedInventoryTime);
570
						System.out.println("Last Updated on Time is  " + lastUpdatedInventoryTime);
571
						if(lastUpdatedInventoryTime > 0){
571
						if(lastUpdatedInventoryTime > 0){
Line 735... Line 735...
735
		}
735
		}
736
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
736
		java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
737
		String emailFromAddress = "build@shop2020.in";
737
		String emailFromAddress = "build@shop2020.in";
738
		String password = "cafe@nes";
738
		String password = "cafe@nes";
739
		GmailUtils mailer = new GmailUtils();
739
		GmailUtils mailer = new GmailUtils();
740
		//String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
740
		String sendTo[] = new String[]{"vikram.raghav@shop2020.in"};
741
		String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
741
		/*String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
742
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
742
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
743
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
743
				"yukti.jain@shop2020.in","manisha.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
744
		if(iterator > 1){
744
		*/if(iterator > 1){
745
			FileOutputStream fileOut = null;
745
			FileOutputStream fileOut = null;
746
			fis.close();
746
			fis.close();
747
			try {
747
			try {
748
				//System.out.println("Before writing file ");
748
				//System.out.println("Before writing file ");
749
				fileOut = new FileOutputStream(SNAPDEAL_INVENTORY_SHEET);
749
				fileOut = new FileOutputStream(SNAPDEAL_INVENTORY_SHEET);