feat: 到岗记录增加查询条件

This commit is contained in:
caoqianming 2023-11-23 16:28:06 +08:00
parent ae40a5fe8c
commit 9b3a983c27
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ class AttendanceViewSet(CustomModelViewSet):
select_related_fields = ['user',
'user__belong_dept', 'user__post', 'shift', 'team']
filterset_fields = ['user',
'user__belong_dept', 'user__post', 'state', 'work_date']
'user__belong_dept', 'user__post', 'state', 'work_date', 'user__name', 'user__phone']
ordering = ['-create_time']