add destroyAllByExample

This commit is contained in:
Timi
2026-01-15 11:20:53 +08:00
parent 7ac4cdae56
commit fd7bb73f5c
6 changed files with 60 additions and 5 deletions

View File

@ -162,4 +162,15 @@ public class SQLProvider extends BaseSQLProvider {
EntityMeta meta = getEntityMeta(context);
return buildDestroySQL(meta, meta.table, "id");
}
/**
* 根据示例批量销毁(物理删除)
*
* @param entity 实体
* @return SQL
*/
public String destroyAllByExample(Object entity) {
EntityMeta meta = getEntityMeta(entity.getClass());
return buildDestroyAllByExampleSQL(meta, meta.table, entity, "");
}
}