示例#1
0
  /** 刮刮卡管理 */
  public String list() throws Exception {
    if (convalue != null && !convalue.equals("")) {
      convalue = URLDecoder.decode(convalue, "utf-8");
    }
    if (page < 1) {
      page = 1;
    }
    // 总记录数
    totalCount = whdscratchcardService.getTotalCount(con, convalue, status, publicaccount);
    // 总页数
    pageCount = whdscratchcardService.getPageCount(totalCount, size);
    if (page > pageCount && pageCount != 0) {
      page = pageCount;
    }
    // 所有当前页记录对象
    whdscratchcards =
        whdscratchcardService.queryList(con, convalue, status, publicaccount, page, size);

    return "list";
  }