fix: 打卡记录导出bug2

This commit is contained in:
caoqianming 2023-03-24 17:52:37 +08:00
parent e0210c4bef
commit a046fa46f0
1 changed files with 2 additions and 2 deletions

View File

@ -249,9 +249,9 @@ class ClockRecordViewSet(ListModelMixin, CustomGenericViewSet):
i['employee_']['id_number'], i['employee_']['id_number'],
i['employee_'].get('belong_dept_name', ''), i['employee_'].get('belong_dept_name', ''),
i['detail'].get('deviceName', None), i['detail'].get('deviceName', None),
i['create_time']], i['create_time'],
crOptions[i['type']], crOptions[i['type']],
crEoptions[i['exception_type']] if i['exception_type'] else '' crEoptions[i['exception_type']] if i['exception_type'] else '']
) )
return Response({'path': export_excel(field_data, data, '打卡记录')}) return Response({'path': export_excel(field_data, data, '打卡记录')})