fix: 打卡记录导出bug2
This commit is contained in:
parent
e0210c4bef
commit
a046fa46f0
|
@ -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, '打卡记录')})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue