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

@@ -150,4 +150,13 @@ public interface DynamicTableMapper<T, P> {
*/
@DeleteProvider(type = DynamicTableSQLProvider.class, method = "destroy")
void destroy(@Param("tableName") String tableName, @Param("id") P id);
/**
* 根据示例批量销毁(物理删除)
*
* @param tableName 表名
* @param entity 示例对象
*/
@UpdateProvider(type = DynamicTableSQLProvider.class, method = "destroyAllByExample")
void destroyAllByExample(@Param("tableName") String tableName, @Param("entity") T entity);
}