到岗天数统计增加工号

This commit is contained in:
caoqianming 2022-01-27 15:38:00 +08:00
parent ddbd70d172
commit c82ef89054
1 changed files with 2 additions and 0 deletions

View File

@ -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(