|
|
|
@ -231,8 +231,10 @@ class MemberController extends ThinkController
|
|
|
|
|
->having($havs)->select(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$jcount = M('User', 'tab_')->field('count(a.id) as count')->table('(' . $sql . ') as a')->select();
|
|
|
|
|
$jcount = M('User', 'tab_')->field('count(a.id) as count,sum(a.recharge_total) recharge_total')->table('(' . $sql . ') as a')->select();
|
|
|
|
|
$count = $jcount[0]['count'];
|
|
|
|
|
// var_dump($jcount);die();
|
|
|
|
|
$this->assign('pay_allcount', $jcount[0]['recharge_total']);
|
|
|
|
|
|
|
|
|
|
$model = M('Model')->getByName('user');
|
|
|
|
|
|
|
|
|
|