导出excel key 不存在的bug

This commit is contained in:
caoqianming 2022-11-18 16:49:13 +08:00
parent 58cd565977
commit 2ffb5c9e3d
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ class ClockRecordViewSet(ListModelMixin, CustomGenericViewSet):
i['employee_']['name'],
i['employee_']['number'],
i['employee_']['id_number'],
i['employee_']['belong_dept_name'],
i['employee_'].get('belong_dept_name', ''),
crOptions[i['type']],
i['detail'].get('deviceName', None),
i['detail'].get('curTemp', None),