StringBuffer sql = new StringBuffer();
sql.append(" INSERT INTO BPM_APPRINFO ");
sql.append(" (APPR_KEY, APPR_VERSION, APPR_EMPCODE, APPR_TRUTH_EMPCODE, APPR_TYPE, APPR_COMMENT, APPR_STATUS, APPR_ENDDATE, TASKID, TRCTAG, APPR_ORDERBY) ");
sql.append(" VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ) ");
BatchPreparedStatementSetter pss = new BatchPreparedStatementSetter() {
public void setValues(PreparedStatement ps, int index) throws SQLException {
Approver approver = approverList.get(index);
int parameterIndex = 1;
ps.setString(parameterIndex++, approver.getApprovalKey());