feat: wpr增加查询条件

This commit is contained in:
caoqianming 2025-02-08 14:26:21 +08:00
parent 957938f8dd
commit 8838227919
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ class WprViewSet(CustomListModelMixin, RetrieveModelMixin, CustomGenericViewSet)
"wm": ["exact", "isnull"],
"material__process": ["exact"],
"state": ["exact"],
"defects": ["exact"]
"defects": ["exact"],
"number": ["exact"]
}
ordering = ["-create_time"]
ordering_fields = ["number", "create_time", "update_time"]