From 20ff424e524913f057c315e1ec99bbcbd3ae6506 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Fri, 6 Dec 2019 10:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/MemberController.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index be9370936..640708207 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -130,20 +130,19 @@ class MemberController extends ThinkController //如股存在会长计算换绑定记录 if($promoterSelect){ + $maps = $map; + unset($maps['tab_user.promote_id']); $history_count = M("user","tab_") ->field("IFNULL(sum(ss.pay_amount), 0) AS recharge_total") ->join("tab_spend AS ss ON ss.user_id = tab_user.id AND ss.pay_status = 1".$spendprom,"left") - ->where($map); + ->where($maps); if($havs){ $history_count->having($havs); } $history_count = $history_count->find()['recharge_total']; $this->assign('history_count', $history_count?:0); } - - // dump($countsql);die(); - // $countres = M()->table('(' . $countsql . ') as a ')->field("count(*) user_count,sum(recharge_total) recharge_total")->find(); $this->assign('user_count',$user_count); $this->assign('now_count', $now_count?:0);