@Override
	public OrderOfDetail getOrderDetail(List<List<String>> list) {

		OrderOfDetail ood = new OrderOfDetail();
		PageBean<DishDetail> page = new PageBean<DishDetail>();
		DishDetail dd = null;

		for (int i = 0; i < list.size(); i++) {
			long dishId = Long.parseLong(list.get(i).get(0));
			int num = Integer.parseInt(list.get(i).get(1));

			try {
				dd = dishDao.getDishDetail(dishId, page).get(0);
			} catch (Exception e) {
				logger.warn("", e);
				return null;
			}

			dd.setNum(num);
			dd.setSubtotal(dd.getPrice() * num);

			String cate = Category.getNameByNum(dd.getCategory());

			ood.setRestId(dd.getRestId());

			if (ood.dishs.containsKey(cate))
				ood.dishs.get(cate).add(dd);
			else {
				List<DishDetail> list2 = new ArrayList<DishDetail>();
				list2.add(dd);
				ood.dishs.put(cate, list2);
			}

			ood.setTotalPrice(ood.getTotalPrice() + dd.getSubtotal());
		}
		return ood;
	}