Package com.lichhao.common.util

Examples of com.lichhao.common.util.QueryParam


  // 该方法,写入ie时,中文乱码
  @RequestMapping(value = "/omArea/query")
  public void query(HttpServletRequest request, HttpServletResponse response,
      Model model) throws IOException {

    QueryParam queryParam = new QueryParam(request);
    String json = omAreaService.queryList(queryParam);

    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
View Full Code Here


  }

  @RequestMapping(value = "/omArea/excel")
  public String excel(HttpServletRequest request, Model model) {

    QueryParam queryParam = new QueryParam(request);

    Query query = new Query();
    if (!StringUtils.isEmpty(queryParam.getQuery())) {
      query.addCriteria(Criteria.where(queryParam.getQtype()).is(
          queryParam.getQuery()));
    }
    query.skip(queryParam.getSkip()).limit(queryParam.getLimit()).sort()
        .on(queryParam.getSortname(), queryParam.getSortorder());

    List<OmAreaBean> list = omAreaService.getOmAreaDao().getMongoTemplate()
        .find(query, OmAreaBean.class);

    // List<OmAreaBean> list =
View Full Code Here

TOP

Related Classes of com.lichhao.common.util.QueryParam

Copyright © 2018 www.massapicom. 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.