统计在厂且绑定标签人数
This commit is contained in:
parent
a65dba3185
commit
f0f33318f5
|
@ -61,6 +61,7 @@ class BltViewSet(CustomGenericViewSet):
|
|||
ret['count_employee'] = qs.filter(employee__type='employee').count()
|
||||
ret['count_remployee'] = qs.filter(employee__type='remployee').count()
|
||||
ret['count_visitor'] = qs.filter(employee__type='visitor').count()
|
||||
ret['count_driver'] = qs.filter(employee__type='driver').count()
|
||||
return Response(ret)
|
||||
|
||||
@action(methods=['post'], detail=False, perms_map={'post': 'blt.all'},
|
||||
|
|
Loading…
Reference in New Issue