quanwei
2 days ago 73b874c72ad55eb9eef21c36160ac0de58f0189e
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'));
    }