我有一个简单的AbitPlan模型,它具有引用计划模型的多对多关系.plans
并且已经在下面带有“ any”的查询
abplan = session.query(AbitPlan).filter(
AbitPlan.campaign == campaign,
AbitPlan.year == YEAR,
AbitPlan.spec_base == abplan_spec_base,
AbitPlan.plans.any(Plan.id.in_([x.id for x in excel_plans]))
).all()
如何查询过滤器与“ excel_plans”完全匹配,例如AbitPlan.plans == excel_plans?