zoukankan      html  css  js  c++  java
  • Java高级架构师(一)第15节:带查询的分页、修改和删除页面

    	@RequestMapping(value="toList",method=RequestMethod.GET)
    	public String toList(@ModelAttribute("wm")CustomerWebModel wm,Model model){
    		CustomerQueryModel cqm = null;
    		if(wm.getQueryJsonStr()==null || wm.getQueryJsonStr().trim().length()==0){
    			cqm =  new CustomerQueryModel();
    		}else{
    			cqm = (CustomerQueryModel)JsonHelper.str2Object(wm.getQueryJsonStr(), CustomerQueryModel.class);
    		}
    		
    		cqm.getPage().setNowPage(wm.getNowPage());
    		if(wm.getPageShow() > 0){
    			cqm.getPage().setPageShow(wm.getPageShow());
    		}
    		
    		Page dbPage = ics.getByConditionPage(cqm);
    		
    		//
    		System.out.println(wm);
    		System.out.println(dbPage);
    		
    		model.addAttribute("wm", wm);
    		model.addAttribute("page", dbPage);
    				
    		return "customer/list";
    	}
    

      

  • 相关阅读:
    [转]老男孩读pcie
    nand
    面试题目汇总
    redis的tcp-backlog配置
    Redis 3.0.4 sentinels
    Redis 3.0.4 客户端
    Redis 3.0.4 事件驱动
    Redis 3.0.4 AOF持久化
    Redis 3.0.4 数据库
    Redis 3.0.4 RDB持久化
  • 原文地址:https://www.cnblogs.com/sunrunzhi/p/10118948.html
Copyright © 2011-2022 走看看