feat: mpoint增加筛选条件

This commit is contained in:
caoqianming 2024-12-30 14:23:02 +08:00
parent 564d8e1796
commit ac7c3cd29c
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ class MpointViewSet(CustomModelViewSet):
select_related_fields = ["create_by", "belong_dept", "ep_monitored", "ep_belong", "mgroup", "material"]
filterset_fields = {
"belong_dept": ["exact"],
"ep_monitored": ["exact"],
"ep_monitored": ["exact", "isnull"],
"ep_monitored__power_kw": ["exact", "gte"],
"ep_belong": ["exact"],
"mgroup": ["exact"],
"is_rep_mgroup": ["exact"],