Package bean

Examples of bean.HisTrans


      conn = JdbcUtils.getConnection();
      conn.setAutoCommit(true);
      ps = conn.prepareStatement(sql);
      ps.clearBatch();
      for (int i = rowBegin; i < rowEnd; i++) {
        HisTrans trans = eService.getRow(result, i);
        ps.setString(1, trans.getSettle_date());
        ps.setString(2, trans.getPan());
        ps.setFloat(3, trans.getAcc_type());
        ps.setString(4, trans.getTxn_name());
        ps.setFloat(5, trans.getTxn_amt());
        ps.setFloat(6, trans.getFee_amt());
        ps.setString(7, trans.getCname());
        ps.setString(8, trans.getTid());
        ps.setString(9, trans.getSp_mid());
        ps.setString(10, trans.getSp_tid());
        ps.setString(11, trans.getTrace1());
        ps.setString(12, trans.getRrn());
        ps.setString(13, trans.getTxn_date());
        ps.setString(14, trans.getArea());
        ps.addBatch();
      }
      ps.executeBatch();
      conn.commit();
    } catch (SQLException e) {
View Full Code Here


   * @param result
   * @param row
   * @return
   */
  public HisTrans getRow(Map<Point, String> result, int row) {
    HisTrans trans = new HisTrans();
    trans.setSettle_date(result.get(new Point(settle_date, row)));
    trans.setPan(result.get(new Point(pan, row)).replaceAll("-", ""));
    trans.setAcc_type(0f);
    trans.setTxn_name("����");
    trans.setTxn_amt(Float.valueOf(result.get(new Point(txn_amt, row)).replaceAll(",", "")));
    trans.setFee_amt(Float.valueOf(result.get(new Point(fee_amt, row)).replaceAll(",", "")));
    trans.setCname("˳�����ˣ����ݣ����޹�˾");
    trans.setTid(result.get(new Point(tid, row)));
    trans.setSp_mid("104481442150002");
    trans.setSp_tid(result.get(new Point(sp_tid, row)));
    trans.setTrace1("0");
    trans.setRrn(result.get(new Point(rrn, row)));
    trans.setTxn_date(result.get(new Point(txn_date, row)).replaceAll("/", ""));
    trans.setArea("����");
    return trans;
  }
View Full Code Here

TOP

Related Classes of bean.HisTrans

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.