feat: 变更enstat排序

This commit is contained in:
caoqianming 2024-12-24 18:20:40 +08:00
parent 841ece1d4f
commit f90bcd530b
1 changed files with 2 additions and 2 deletions

View File

@ -243,8 +243,8 @@ class EnStatViewSet(CustomListModelMixin, BulkUpdateModelMixin, CustomGenericVi
update_serializer_class = EnStatUpdateSerializer
select_related_fields = ["mgroup", "team", "mgroup__belong_dept"]
filterset_class = EnStatFilter
ordering = ["mgroup__sort", "year_s", "month_s", "day_s", "create_time"]
ordering_fields = ["mgroup__sort", "year_s", "month_s", "day_s", "hour", "update_time", "create_time"]
ordering = ["mgroup__sort", "year_s", "month_s", "day_s", "team__create_time", "create_time"]
ordering_fields = ["mgroup__sort", "year_s", "month_s", "day_s", "hour", "update_time", "create_time", "team__create_time"]
@action(methods=["post"], detail=False, perms_map={"post": "*"}, serializer_class=EnStatAnaSerializer)
def analyze(self, request, *args, **kwargs):