Explorar el Código

去掉指定字段的insert

4.0
郑根木 hace 2 años
padre
commit
d2f875f771
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      smtweb-framework/core/src/main/java/cc/smtweb/framework/core/db/DbEngine.java

+ 2
- 2
smtweb-framework/core/src/main/java/cc/smtweb/framework/core/db/DbEngine.java Ver fichero

@@ -278,7 +278,7 @@ public class DbEngine extends JdbcEngine {
if (entities == null || entities.isEmpty()) {
return null;
}
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities, null);
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities);
}

/**
@@ -293,7 +293,7 @@ public class DbEngine extends JdbcEngine {
if (entities == null || entities.isEmpty()) {
return null;
}
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities, fields);
return findDao((Class<T>) entities.get(0).getClass()).batchInsertEntity(entities);
}




Cargando…
Cancelar
Guardar