add destroyAllByExample
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user