histran.setTxnAmt(1);
} else {
histran.setTxnAmt(0);
}
Page page = histranService.query(histran, currentPage, txnAmt1, txnAmt2);
if (logger.isDebugEnabled()) {
// 获取参数的方式,通过增加方法的参数来自动将数据封装到对象中。
logger.debug(histran.toString());
logger.debug(page.toString());
}
histran.setTxnDate(txnDate);
histran.setSettleDate(settleDate);
request.setAttribute("page", page);
request.setAttribute("histran", histran);
if (txnAmt1 != 0) {
request.setAttribute("txnAmt1", txnAmt1);
}
if (txnAmt2 != 0) {
request.setAttribute("txnAmt2", txnAmt2);
}
request.setAttribute("currentPage", currentPage);
request.setAttribute("totalSize", page.getTotalSize());
request.setAttribute("pageSize", page.getPageSize());
request.setAttribute("totalPageCount", page.getTotalPageCount());
return "histran/index";
}