@RequestMapping(value = "sameMat", method = RequestMethod.GET)
	public ModelAndView loadSameMaterial() {

		SmartCommonDishs scd = new SmartCommonDishs();

		int pageNum = DishUtil.INITPAGENUM;

		int pageSize = DishUtil.ListNUM;

		long restId = 100000;

		String material = "";

		String pageParam = request.getParameter("pageNum");

		String pageParam1 = request.getParameter("pageSize");

		String matParam = request.getParameter("material");

		if (null != pageParam)
			pageNum = Integer.parseInt(pageParam);

		if (null != pageParam1)
			pageSize = Integer.parseInt(pageParam1);

		if (null != matParam)
			material = matParam;

		if (null != session.getAttribute("restId"))
			restId = (Long) session.getAttribute("restId");

		try {
			String material1 = new String(material.getBytes("iso-8859-1"),
					"UTF-8");

			String[] mats = StringUtil.splitString(material1, "、");

			List<DishDetail> list = dishService.getSameMatDish(mats[0], restId,pageNum, pageSize);

			scd.setRestId(restId);

			scd.setSmartType(SmartType.SAMEMATER);

			scd.setSmartTypeNum(SmartType.SAMEMATERNUM);

			scd.setDishs(list);

			// System.out.println(material1);
		} catch (Exception e) {
			// e.printStackTrace();
			logger.warn("同食材菜品加载出错", e);
		}

		return new ModelAndView("commonDish", "dishs", scd);
	}