From c82ef89054d97f0167bbb860cd38caf0f315b257 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 27 Jan 2022 15:38:00 +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=A2=9E=E5=8A=A0=E5=B7=A5=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/srm/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hb_server/apps/srm/views.py b/hb_server/apps/srm/views.py index 3c7e6a3..d8531c0 100644 --- a/hb_server/apps/srm/views.py +++ b/hb_server/apps/srm/views.py @@ -1,5 +1,6 @@ from django.shortcuts import render +from numpy import number from rest_framework import serializers from rest_framework.generics import ListAPIView, CreateAPIView from rest_framework.views import APIView @@ -82,6 +83,7 @@ class AtWorkCountView(CreateAPIView): update_time__month = vdata['month'] ).values( user_id = F('create_by'), + number = F('create_by__employee_user__number'), username = F('create_by__username'), name = F('create_by__name'), dept_name = F('create_by__dept__name')).annotate(