Subversion Repositories SmartDukaan

Rev

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

Rev 18607 Rev 19754
Line 946... Line 946...
946
 
946
 
947
			for(in.shop2020.model.v1.catalog.Item thriftItem : thriftItems) {
947
			for(in.shop2020.model.v1.catalog.Item thriftItem : thriftItems) {
948
				List<in.shop2020.model.v1.inventory.VendorItemPricing> vip = inventoryClient.getAllItemPricing(thriftItem.getId());
948
				List<in.shop2020.model.v1.inventory.VendorItemPricing> vip = inventoryClient.getAllItemPricing(thriftItem.getId());
949
				List<in.shop2020.model.v1.inventory.VendorItemMapping> vim = inventoryClient.getVendorItemMappings(thriftItem.getId());
949
				List<in.shop2020.model.v1.inventory.VendorItemMapping> vim = inventoryClient.getVendorItemMappings(thriftItem.getId());
950
				List<in.shop2020.model.v1.catalog.SourceItemPricing> sip = catalogClient.getAllSourcePricing(thriftItem.getId());
950
				List<in.shop2020.model.v1.catalog.SourceItemPricing> sip = catalogClient.getAllSourcePricing(thriftItem.getId());
951
				itemList.add(getItemFromThriftItem(thriftItem, vip, vim, sip, null, null, null, null, null, null));
951
				Item item = getItemFromThriftItem(thriftItem, vip, vim, sip, null, null, null, null, null, null);
-
 
952
				item.setDealPrice(thriftItem.getDealPrice());
-
 
953
				itemList.add(item);
952
			}
954
			}
953
		} catch (Exception e) {
955
		} catch (Exception e) {
954
			logger.error("Error while getting items by category: " + category, e);
956
			logger.error("Error while getting items by category: " + category, e);
955
		}
957
		}
956
		Collections.sort(itemList, new ItemsComparator());
958
		Collections.sort(itemList, new ItemsComparator());