zoukankan      html  css  js  c++  java
  • Controller 层类

    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");//设置预登记类型为参观
            
            Page<YuDengJi> pageCanguan = yuDengJiService.findPage(new Page<YuDengJi>(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<YuDengJi> pageCanZhan = yuDengJiService.findPage(new Page<YuDengJi>(request, response), yuDengJi);
            
            model.addAttribute("page", pageCanZhan);
            model.addAttribute("startDate", yuDengJi.getStartDate());
            model.addAttribute("endDate", yuDengJi.getEndDate());
            return "modules/yudengji/yudengjicanzhanList";
            
        }
    }
  • 相关阅读:
    面向消息的持久通信与面向流的通信
    通信协议
    [1]序章,基本
    深拷贝和浅拷贝
    堆/栈 内存管理相关
    C++的四种cast(显示类型转换)
    智能指针相关
    C++对象模型:单继承,多继承,虚继承
    HTTP/TCP
    [读书笔记] 为什么绝不在构造/析构函数中调用virtual函数
  • 原文地址:https://www.cnblogs.com/SHMILYHP/p/5198073.html
Copyright © 2011-2022 走看看