|
|
@@ -280,21 +280,4 @@ public class DbEngine extends JdbcEngine { |
|
|
|
} |
|
|
|
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 批量插入单行数据 |
|
|
|
* |
|
|
|
* @param entities PO对象列表 |
|
|
|
* @param fields 逗号分隔的字段列表 |
|
|
|
* @param <T> 实体类型 |
|
|
|
* @return 更新数量 |
|
|
|
*/ |
|
|
|
public <T> int[] batchInsertEntity(List<T> entities, String fields) { |
|
|
|
if (entities == null || entities.isEmpty()) { |
|
|
|
return null; |
|
|
|
} |
|
|
|
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |