java batch批量

String upSql = "update T_D_AC_TRADE_DEP set n_sett_money_due = ? where c_iden_sub = ? ";	
			pst2 = conn.prepareStatement(upSql);
			
			while (rs.next()) {
				Cktz ck = (Cktz)rsTools.ResultToBean(rs, Cktz.class);
				String incomeDueBalance = ckSe.incomeDueBalance(ck, YssFun.formatDate(ck.getD_TRADE()), ck.getN_TD_MONEY(), ck.getC_DV_SETT());
				
				pst2.addBatch();
			}
			pst2.executeBatch();

猜你喜欢

转载自blog.csdn.net/m0_37564426/article/details/82763345