@Override
	public List<AllOrders> getAllOrders(long userId,int pageNum,int listNum) {
		
		List<AllOrders> list = null;
		PageBean<AllOrders> page = new PageBean<AllOrders>();
		
		if(userId <= 0||pageNum < 0||listNum < 0)
			return null;
		
		try {
			page.setPageSize(listNum);
			page.setCurrentPage(pageNum);
			list = orderDao.getAllOrders(userId, page);
		} catch (Exception e) {
			logger.warn("", e);
			return null;
		}
		
		return list;
	}