package com.thinkgem.jeesite.modules.yudengji.web;import java.util.Date;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.RequestMapping;import com.thinkgem.jeesite.common.persistence.Page;import com.thinkgem.jeesite.common.web.BaseController;import com.thinkgem.jeesite.modules.registration.entity.YuDengJi;import com.thinkgem.jeesite.modules.registration.service.YuDengJiService;@Controller@RequestMapping(value = "${adminPath}/yudengji")public class YuDengJiController extends BaseController{ @Autowired private YuDengJiService yuDengJiService; /** * 后台预登记参观页面 * @param intentRegistra * @param model * @param request * @param response * @return */ @RequestMapping("/canguan") public String visitList(YuDengJi yuDengJi,Model model,HttpServletRequest request, HttpServletResponse response){ yuDengJi.setType("1");//设置预登记类型为参观 PagepageCanguan = yuDengJiService.findPage(new Page (request, response), yuDengJi); model.addAttribute("page", pageCanguan); model.addAttribute("startDate",yuDengJi.getStartDate()); model.addAttribute("endDate", yuDengJi.getEndDate()); return "modules/yudengji/yudengjicanguanList"; } @RequestMapping("/canzhan") public String exhibitorsList(YuDengJi yuDengJi,Model model,HttpServletRequest request, HttpServletResponse response){ yuDengJi.setType("0");//设置预登记类型为参展 Page pageCanZhan = yuDengJiService.findPage(new Page (request, response), yuDengJi); model.addAttribute("page", pageCanZhan); model.addAttribute("startDate", yuDengJi.getStartDate()); model.addAttribute("endDate", yuDengJi.getEndDate()); return "modules/yudengji/yudengjicanzhanList"; }}