From 73b874c72ad55eb9eef21c36160ac0de58f0189e Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 10:30:43 +0800
Subject: [PATCH] δΌεεη
---
admin/app/shop/controller/branch/Branch.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/admin/app/shop/controller/branch/Branch.php b/admin/app/shop/controller/branch/Branch.php
index df96320..4b01531 100644
--- a/admin/app/shop/controller/branch/Branch.php
+++ b/admin/app/shop/controller/branch/Branch.php
@@ -27,6 +27,10 @@
$model = new BranchModel;
$postData = $this->postData();
$list = $model->getList($postData);
+ foreach ($list as $key => $value) {
+ $list[$key]['member_num'] = $list[$key]['member_num']+(new \app\shop\model\branch\ActivityUser())
+ ->group('user_id')->where(['branch_id'=>$value['branch_id']])->count();
+ }
return $this->renderSuccess('', compact('list'));
}
--
Gitblit v1.9.2