feat: 添加mio,mlog,handover关于batch的查询条件
This commit is contained in:
parent
146fe6641f
commit
cb28f1d9ef
|
@ -35,6 +35,7 @@ class MioFilter(filters.FilterSet):
|
||||||
"item_mio__test_date": ["isnull"],
|
"item_mio__test_date": ["isnull"],
|
||||||
"item_mio__test_user": ["isnull"],
|
"item_mio__test_user": ["isnull"],
|
||||||
"mgroup": ["exact"],
|
"mgroup": ["exact"],
|
||||||
|
"item_mio__batch": ["exact"]
|
||||||
}
|
}
|
||||||
|
|
||||||
def filter_materials__type(self, queryset, name, value):
|
def filter_materials__type(self, queryset, name, value):
|
||||||
|
|
|
@ -104,7 +104,8 @@ class MlogFilter(filters.FilterSet):
|
||||||
"mgroup__belong_dept__name": ["exact", "in", "contains"],
|
"mgroup__belong_dept__name": ["exact", "in", "contains"],
|
||||||
"mgroup__name": ["exact", "in", "contains"],
|
"mgroup__name": ["exact", "in", "contains"],
|
||||||
"submit_time": ["isnull"],
|
"submit_time": ["isnull"],
|
||||||
"fmlog": ["exact"]
|
"fmlog": ["exact"],
|
||||||
|
"b_mlog__batch": ["exact"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,7 +141,8 @@ class HandoverFilter(filters.FilterSet):
|
||||||
"recive_mgroup": ["exact"],
|
"recive_mgroup": ["exact"],
|
||||||
"recive_mgroup__name": ["exact"],
|
"recive_mgroup__name": ["exact"],
|
||||||
"type": ["exact", "in"],
|
"type": ["exact", "in"],
|
||||||
"mtype": ["exact", "in"]
|
"mtype": ["exact", "in"],
|
||||||
|
"b_handover__batch": ["exact"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue