fix: cr导出只显示上下班的
This commit is contained in:
parent
4478bb7b99
commit
be254372c0
|
@ -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 = []
|
||||
|
|
Loading…
Reference in New Issue