PreparedStatement ps = null;
try {
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());