zoukankan      html  css  js  c++  java
  • PageModel:有数据,数量为0

    1、原来:

      //执行selectBorrowsSucCount语句时,会丢失参数

    PageModel model =borrowDao.getPage("selectBorrowsSuc", "selectBorrowsSucCount", paramsMap);

    2、正确的:

      //将pagemodel参数进行传递过去。

    if(paramsMap.get(Constants.PAGED_CURPAGE) != null && paramsMap.get(Constants.PAGED_CURPAGE).toString() != ""){
            }else{
                paramsMap.put(Constants.PAGED_CURPAGE, "1");
            }
            PageModel pageModel=new  PageModel(Integer.parseInt(paramsMap.get(Constants.PAGED_CURPAGE).toString()));  //设置当前页
            if(paramsMap.containsKey(Constants.PAGED_NUM_PERPAGE)){
                pageModel.setPageSize(Integer.parseInt(paramsMap.get(Constants.PAGED_NUM_PERPAGE).toString()));
            }
            PageModel model =borrowDao.getPage("selectBorrowsSuc", "selectBorrowsSucCount", paramsMap,pageModel);
    工作小总结,有错请指出,谢谢。
  • 相关阅读:
    新浪微博采用Oauth发送图片和文字
    android proguard也有弱点
    POJ 2376
    POJ 3259
    POJ 2253
    POJ 1062
    POJ 2299
    POJ 2186
    POJ 1860
    POJ 2823
  • 原文地址:https://www.cnblogs.com/zilanghuo/p/5364030.html
Copyright © 2011-2022 走看看