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