直接给代码:
/**
* 批量保存流程泳道实例
* @param taInstswimwayList 流程泳道实例集合
*/
public void saveTaInstswimwayObj(final List taInstswimwayList)throws Exception{
String sql = "insert into ta_instswimway(WAYID,PROCINSTID,WAYNAME,GRAPHMSG,DIRECTION) values(?,?,?,?,?)";
try{
this.getJdbcTemplate().batchUpdate(sql, new BatchPreparedStatementSetter(){
public int getBatchSize() {
return taInstswimwayList.size();
}
public voi......
阅读全文