From be254372c087c4f29ab0737dbde8a32ee18879a6 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 16 Mar 2023 13:25:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cr=E5=AF=BC=E5=87=BA=E5=8F=AA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=8A=E4=B8=8B=E7=8F=AD=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/hrm/views.py b/apps/hrm/views.py index 30d8d491..72e59b40 100755 --- a/apps/hrm/views.py +++ b/apps/hrm/views.py @@ -237,7 +237,7 @@ class ClockRecordViewSet(ListModelMixin, CustomGenericViewSet): """ field_data = ['人员类型', '人员', '编号', '身份证号', '所属部门', '打卡类型', '触发形式', '体温', '打卡时间'] - queryset = self.filter_queryset(self.get_queryset()) + queryset = self.filter_queryset(self.get_queryset()).filter(type__in=[10, 20]) odata = ClockRecordListSerializer(queryset, many=True).data # 处理数据 data = []