コード例 #1
0
  /** 查找所有分户账 */
  public String findAllLedger() {

    LinkedHashMap<String, String> orderby = new LinkedHashMap<String, String>();
    orderby.put("l_id", "DESC");

    PageView<Ledger> pageView = new PageView<Ledger>(10, this.getPage());

    ResultType<Ledger> rt =
        utilDao.fenye(Ledger.class, pageView.getFirstResult(), pageView.getMaxResult(), orderby);
    pageView.setResultType(rt);

    ServletActionContext.getRequest().setAttribute("pageView", pageView);

    return "findAllLedger";
  }
コード例 #2
0
  /** -------------查看所有订单--------------------------- */
  public String findAllTransaction() {
    LinkedHashMap<String, String> orderby = new LinkedHashMap<String, String>();
    orderby.put("TransactionID", "DESC");

    PageView<TransactionInfo> pageView = new PageView<TransactionInfo>(10, this.getPage());

    ResultType<TransactionInfo> rt =
        utilDao.fenye(
            TransactionInfo.class, pageView.getFirstResult(), pageView.getMaxResult(), orderby);
    pageView.setResultType(rt);

    ServletActionContext.getRequest().setAttribute("pageView", pageView);

    return "findAllTransaction";
  }