Examples of PageList


Examples of com.lgx8.common.PageList

        }else{
          hql = " from Merchant where DELETEFLAG = 0 and ssjgbh=? order by sjtjsj desc";
          o = new Object[]{_orid};
        }
      }
      PageList list = userOrganizationMerchantService.listMerchantByConditions(hql, o, pageArgment);
      printJSON(response, list.toJSON());
    }
    return null;
  }
View Full Code Here

Examples of com.lgx8.common.PageList

        }else{
          hql = " from Organization where DELETEFLAG = 0 and jgssjg=? order by jgtjsj desc";
          o = new Object[]{_orid};
        }
      }
      PageList list = userOrganizationMerchantService.listOrganizationByConditions(hql, o, pageArgment);
      printJSON(response, list.toJSON());
    }
    return null;
  }
View Full Code Here

Examples of com.lgx8.common.PageList

      if(!sb.toString().equals("")){
        hql = " from Organization where DELETEFLAG = '0' and "+sb.toString().substring(4)+" order by jgtjsj desc";
      }else{
        hql = " from Organization where DELETEFLAG = '0' order by jgtjsj desc";
      }
      PageList list = userOrganizationMerchantService.listOrganizationByConditions(hql, o.toArray(), pageArgment);
      printJSON(response, list.toJSON());
    }
    return null;
  }
View Full Code Here

Examples of com.lgx8.common.PageList

        root.put("page", page);
      } else {
       
      }*/
      String code = request.getParameter("productid");
      PageList page = gatewayService.findProductPageByCode(code, pagenum, Constants.PRODUCT_LIST_SIZE);
      if(page!=null&&page.getDataList().size()>0) {
        root.put("page", page);
      }
    } else {
      String keyword = request.getParameter("keyword");
      //处理关键字
      String[] keys = null;
      if(keyword!=null) {
        keyword = keyword.trim();
      }
      if(keyword==null||"".equals(keyword)) {
        keys = null;
      } else {
        root.put("keyword", keyword);
        if(keyword.indexOf(" ")>0) {
          String[] keywords = keyword.split(" ");
          keys = new String[keywords.length+1];
          keys[0] = keyword;
          for(int i=1;i<keys.length;i++) {
            keys[i] = keywords[i-1];
          }
        } else {
          keys = new String[]{keyword };
        }
      }
     
      String areaCategoryId = request.getParameter("areaCategoryId");
      root.put("areaCategoryId", areaCategoryId);
      String categoryId = request.getParameter("categoryId");
      root.put("categoryId", categoryId);
     
      long aid = -1;
      long cid = -1;
      try {
        aid = Long.parseLong(areaCategoryId);
      } catch (Exception e) {
        aid = -1;
      }
      try {
        cid = Long.parseLong(categoryId);
      } catch (Exception e) {
        cid = -1;
      }
      String keytype = request.getParameter("keytype");
      root.put("keytype", keytype);
      if(keytype==null) {
        keytype = "1";
      }
     
      PageList page = gatewayService.findProductPage(aid, cid, keytype, keys, pagenum, Constants.PRODUCT_LIST_SIZE);
      if(page!=null&&page.getDataList().size()>0) {
        root.put("page", page);
      }
    }
    /* 将模板和数据模型合并 */
    Writer out = response.getWriter();
View Full Code Here

Examples of com.lgx8.common.PageList

      } else {
        keys = new String[]{keyword };
      }
    }
   
    PageList page = null;
    if(keys==null) {
      page = gatewayService.findBrandPage(pagenum, Constants.BRAND_LIST_SIZE);
    } else {
      page = gatewayService.findBrandPage(pagenum, Constants.BRAND_LIST_SIZE, searchType, keys);
    }
   
    if(page!=null&&page.getDataList().size()>0) {
      root.put("page", page);
      root.put("Update_Brand_Url", Constants.UPDATE_BRAND_URL);
    }
   
   
View Full Code Here

Examples of com.lgx8.common.PageList

    queryForm.setAuthor(author);
    queryForm.setEtime(etime);
    queryForm.setStime(stime);
    queryForm.setType(type);
    PageArgument pageArgment = getPageInfo(request);
    PageList pageList = newsDao.findUserByConditions(queryForm.toHql(), queryForm.getPara(), pageArgment);
    printJSON(response, pageList.toJSON());
    return null;
  }
View Full Code Here

Examples of com.lgx8.common.PageList

  IUserDao userDao;

  public PageList queryOrders(String hql, Object[] values,
      PageArgument argment) {
    if (argment == null)
      return new PageList();
    return orderDao.findByPage4Report(hql, values, argment.getCurPage(),
        argment.getPageSize());
  }
View Full Code Here

Examples of com.lgx8.common.PageList

  @RequestMapping("/category/categoryPageQuery.do")
  public ModelAndView categoryPageQuery(HttpServletRequest request,HttpServletResponse response){
    String id = request.getParameter("id");
    String areaNode = request.getParameter("areaNode");
    PageArgument pageArgment = getPageInfo(request);
    PageList list = gatewayCategoryDetailDao.findPageGatewayCategoryDetailByCategoryId(StrUtil.parseInt(id),areaNode, pageArgment);
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here

Examples of com.lgx8.common.PageList

    }
    String areaNode = request.getParameter("areaNode");
    String code = request.getParameter("code");
    String name = request.getParameter("name");
    PageArgument pageArgment = getPageInfo(request);
    PageList list =  productDao.findAllProductByAreaCategoryId(Long.parseLong(areacategoryId),areaNode,pageArgment,code,name);
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here

Examples of com.lgx8.common.PageList

  @RequestMapping("/category/addAdList.do")
  public ModelAndView addAdList(HttpServletRequest request,HttpServletResponse response) {
//    String areacategoryId = request.getParameter("areacategoryId");
//    String areaName = request.getParameter("areaName");
    PageArgument pageArgment = getPageInfo(request);
    PageList list = advertisementDao.findAllAdvertisement(pageArgment);
    printJSON(response, list.toJSON());
    return null;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.