@Override
	public List<DishDetail> selectDishByRestIdAndCategory(long restId, int cate,int pageNum,int listNum) {
		List<DishDetail> list = null;
		if(restId > 0&&cate > 0){
			try {
				Map<String, Object> map = new HashMap<String, Object>();
				PageBean<Dish> page = new PageBean<Dish>();
				PageBean<Tag> page1 = new PageBean<Tag>();
				PageBean<Taste> page2 = new PageBean<Taste>();
				
				
				page.setCurrentPage(pageNum);
				page.setPageSize(listNum);
				
				map.put("restId", restId);
				map.put("cate", cate);
				
				list = dishDao.selectDishByRestIdAndCategory(map,page);
				
				for(int i = 0;i < list.size();i++){
					DishDetail dd = list.get(i);
					long dishId = dd.getDishId();
					dd.setTags(tagDao.loadTags(dishId, page1));
					dd.setTastes(tasteDao.loadTastes(dishId, page2));
				}
				
				return list;
			} catch (Exception e) {
				logger.warn("", e);
				return null;
			}
		}
		return null;
	}