Package com.sfpay.histran.domain

Examples of com.sfpay.histran.domain.Histran


  private IHistranDao histranDao;

  @Test
  public void testQuery() {
    logger.debug(histranDao.toString());
    Histran histran = new Histran();
    histran.setTransId(0);
    logger.debug(histran.toString());
    HashMap map = new HashMap();
    map.put("pageSize", 100);
    map.put("start", 2);
    map.put("area", "");
    List<Histran> a = histranDao.queryList(map);
View Full Code Here


  private IHistranDao histranDao;

  @Test
  public void testQuery() {
    logger.debug(histranDao.toString());
    Histran histran = new Histran();
    histran.setTransId(0);
    logger.debug(histran.toString());
    HashMap map = new HashMap();
    map.put("pageSize", 100);
    map.put("start", 2);
    map.put("area", "");
    List<Histran> a = histranDao.queryList(map);
View Full Code Here

        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);
View Full Code Here

TOP

Related Classes of com.sfpay.histran.domain.Histran

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.