public int insertPushRecords(List<PushRecord> list) {
String sql = "insert into bu_push_record(docid,modelname,title,lspri,url,sub_title,add_date,last_modify,modify_user,topicid,type,img )"
+ " values(:docid,:modelName,:title,:lspri,:url,:subTitle,now(),now(),:modifyUser,:topicid,:type,:img)";
SqlParameterSource[] paramMap = new SqlParameterSource[list.size()];
for (int i = 0; i < paramMap.length; i++) {
paramMap[i] = new BeanPropertySqlParameterSource(list.get(i));
}
return namedParameterJdbcTemplate.batchUpdate(sql, paramMap).length;
}