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,12 @@ public interface BaseMapper<T, P> {
*/
@DeleteProvider(type = SQLProvider.class, method = "destroy")
void destroy(P id);
/**
* 根据示例批量销毁(物理删除)
*
* @param t 示例对象
*/
@UpdateProvider(type = SQLProvider.class, method = "destroyAllByExample")
void destroyAllByExample(T t);
}