Subversion Repositories SmartDukaan

Rev

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

Rev 7591 Rev 7603
Line 171... Line 171...
171
		LogisticsClient logisticsClient = new LogisticsClient();
171
		LogisticsClient logisticsClient = new LogisticsClient();
172
		return logisticsClient.getClient().getLogisticsInfo("110001", Long.valueOf(itemId), DeliveryType.COD, PickUpType.COURIER).getShippingTime();
172
		return logisticsClient.getClient().getLogisticsInfo("110001", Long.valueOf(itemId), DeliveryType.COD, PickUpType.COURIER).getShippingTime();
173
 
173
 
174
	}
174
	}
175
 
175
 
176
	public  Map<Long, String> getAliveItemMap() throws TException{
176
	public  Map<Long, Item> getAliveItemMap() throws TException{
177
		Client CatalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
177
		Client CatalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
178
		List<Item> itemList = CatalogClient.getAllAliveItems();
178
		List<Item> itemList = CatalogClient.getAllAliveItems();
179
		Map<Long, String> itemMap = new HashMap<Long, String>();
179
		Map<Long, Item> itemMap = new HashMap<Long, Item>();
180
		for (Item o : itemList) {
180
		for (Item o : itemList) {
181
			itemMap.put((Long) o.getId(), (String) o.getBrand()+" "+o.getModelName()+" "+o.getModelNumber()+" "+o.getColor());
181
			itemMap.put((Long) o.getId(), o);
182
		}
182
		}
183
		return itemMap;
183
		return itemMap;
184
	}
184
	}
185
 
185
 
186
	public String edit() {
186
	public String edit() {