diff --git a/app/api/controller/Invite.php b/app/api/controller/Invite.php index 26154c94..83756334 100644 --- a/app/api/controller/Invite.php +++ b/app/api/controller/Invite.php @@ -108,6 +108,10 @@ class Invite extends Controller } } $data['total'] = $list->total(); + //审核通过 + $data['adoption_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count(); + //审核拒绝 + $data['refuse_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::REFUSE])->count(); } return $this->renderSuccess($data); }