feat: 变更attendance查询和排序条件
This commit is contained in:
parent
8b2761b027
commit
19527f9736
|
@ -256,7 +256,8 @@ class AttendanceViewSet(CustomModelViewSet):
|
|||
filterset_fields = ['user',
|
||||
'user__belong_dept', 'user__post', 'state', 'work_date', 'user__name', 'user__phone']
|
||||
search_fields = ['user__name', 'user__phone']
|
||||
ordering = ['-work_date', '-create_time']
|
||||
ordering = ['-work_date', 'shift', '-create_time']
|
||||
ordering_fields = ['work_date', 'shift', 'create_time']
|
||||
|
||||
|
||||
class ClockRecordViewSet(BulkCreateModelMixin, ListModelMixin, BulkDestroyModelMixin, CustomGenericViewSet):
|
||||
|
|
Loading…
Reference in New Issue