Subversion Repositories SmartDukaan

Rev

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

Rev 19050 Rev 19052
Line 754... Line 754...
754
				"VirtualWarehouses", CacheManager.create());
754
				"VirtualWarehouses", CacheManager.create());
755
		
755
		
756
		List<Long> virtualWarehouseIds = virtualWhCache.get("virtual_warehouses");
756
		List<Long> virtualWarehouseIds = virtualWhCache.get("virtual_warehouses");
757
		
757
		
758
		if(virtualWarehouseIds!=null && virtualWarehouseIds.size()>0){
758
		if(virtualWarehouseIds!=null && virtualWarehouseIds.size()>0){
-
 
759
			System.out.println("Virtual Warehouse Exists");
-
 
760
			logger.info("Virtual Warehouse Exists");
759
			return virtualWarehouseIds;
761
			return virtualWarehouseIds;
760
		}else{
762
		}else{
-
 
763
			System.out.println("Virtual Warehouse Not Exists");
-
 
764
			logger.info("Virtual Warehouse Not Exists");
761
			virtualWarehouseIds = new ArrayList<Long>();
765
			virtualWarehouseIds = new ArrayList<Long>();
762
			try{
766
			try{
763
				in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = new InventoryClient().getClient();
767
				in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = new InventoryClient().getClient();
764
				List<Warehouse> allWarehouses = inventoryClient.getWarehouses(null, null, 0, 0, 0);
768
				List<Warehouse> allWarehouses = inventoryClient.getWarehouses(null, null, 0, 0, 0);
765
				for(Warehouse wh:allWarehouses){
769
				for(Warehouse wh:allWarehouses){