到岗天数统计加入show_atwork筛选

This commit is contained in:
caoqianming 2022-03-17 12:00:30 +08:00
parent eb63453120
commit 0aa096af8c
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ class AtWorkCountView(CreateAPIView):
) )
ret = ClockRecord.objects.filter( ret = ClockRecord.objects.filter(
update_time__year = vdata['year'], update_time__year = vdata['year'],
update_time__month = vdata['month'] update_time__month = vdata['month'],
create_by__show_atwork = True
).values( ).values(
user_id = F('create_by'), user_id = F('create_by'),
number = F('create_by__employee_user__number'), number = F('create_by__employee_user__number'),