Commit f0643bdb authored by Quxl's avatar Quxl

x

parent e9a68938
......@@ -415,13 +415,19 @@ public class JdbcTemplate extends org.springframework.jdbc.core.JdbcTemplate {
}
public int[] batchSave(Object... objs) {
if(objs != null && objs.length > 0) {
Sql i = dialect.batchInsert(objs);
return this.batchUpdate(i.getSql(), i.getBachArgs());
}
return new int[]{0};
}
public int[] batchSave(List<?> objs) {
if(objs != null && objs.size() > 0) {
return this.batchSave(objs.toArray());
}
return new int[]{0};
}
public int batchSave(String tableName, List<Map<String, Object>> objs) {
if(objs.size() > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment