txnAmt2 = Float.valueOf(sTxnAmt2);
} catch (Exception e) {
}
}
Histran histran = new Histran();
histran.setArea(area);
if (null != txnDate) {
histran.setTxnDate(txnDate.replaceAll("-", "").trim());
}
histran.setAccType(accType);
if (null != settleDate) {
histran.setSettleDate(settleDate.replaceAll("-", "").trim());
}
histran.setCname(cname);
histran.setTid(tid);
histran.setSpMid(spMid);
histran.setSpTid(spTid);
histran.setPan(pan);
histran.setTrace1(trace1);
if (txnAmt1 + txnAmt2 != 0) {
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);