From 0aa096af8c8deab10092e99003671d429a52ef09 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 17 Mar 2022 12:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B0=E5=B2=97=E5=A4=A9=E6=95=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8A=A0=E5=85=A5show=5Fatwork=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/srm/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hb_server/apps/srm/views.py b/hb_server/apps/srm/views.py index 631380b..f84f5e9 100644 --- a/hb_server/apps/srm/views.py +++ b/hb_server/apps/srm/views.py @@ -147,7 +147,8 @@ class AtWorkCountView(CreateAPIView): ) ret = ClockRecord.objects.filter( update_time__year = vdata['year'], - update_time__month = vdata['month'] + update_time__month = vdata['month'], + create_by__show_atwork = True ).values( user_id = F('create_by'), number = F('create_by__employee_user__number'),