Browse Source

去掉指定字段的insert

4.0
郑根木 2 years ago
parent
commit
8e0392548b
1 changed files with 0 additions and 17 deletions
  1. +0
    -17
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/db/DbEngine.java

+ 0
- 17
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/db/DbEngine.java View File

@@ -280,21 +280,4 @@ public class DbEngine extends JdbcEngine {
} }
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities); 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);
}


} }

Loading…
Cancel
Save