add destroyAllByExample
This commit is contained in:
@@ -172,4 +172,17 @@ public class DynamicTableSQLProvider extends BaseSQLProvider {
|
||||
EntityMeta meta = getEntityMeta(context);
|
||||
return buildDestroySQL(meta, tableName, "id");
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据示例批量逻辑删除
|
||||
*
|
||||
* @param context 代理器上下文
|
||||
* @param tableName 表名
|
||||
* @param entity 实体
|
||||
* @return SQL
|
||||
*/
|
||||
public String destroyAllByExample(ProviderContext context, @Param("tableName") String tableName, @Param("entity") Object entity) {
|
||||
EntityMeta meta = getEntityMeta(context);
|
||||
return buildDestroyAllByExampleSQL(meta, tableName, entity, "entity.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user