|
|
@ -698,10 +698,10 @@ class PromoteController extends ThinkController
|
|
|
|
];
|
|
|
|
];
|
|
|
|
//为数据权限添加
|
|
|
|
//为数据权限添加
|
|
|
|
setPowerPromoteIds($map2);
|
|
|
|
setPowerPromoteIds($map2);
|
|
|
|
$total = null_to_0(D('Spend')->where($map1)->sum('pay_amount'));
|
|
|
|
$total = null_to_0(D('Spend')->where($map1)->sum('pay_amount'));//累计充值
|
|
|
|
$ttotal = null_to_0(D('Spend')->where('pay_time'.total(1))->where($map2)->sum('pay_amount'));
|
|
|
|
$ttotal = null_to_0(D('Spend')->where(['pay_time' => total(1, false)])->where($map2)->sum('pay_amount'));//昨日充值
|
|
|
|
$ytotal = null_to_0(D('Spend')->where('pay_time'.total(5))->where($map2)->sum('pay_amount'));
|
|
|
|
$ytotal = null_to_0(D('Spend')->where(['pay_time' => total(5, false)])->where($map2)->sum('pay_amount'));//今日充值
|
|
|
|
|
|
|
|
// dd($total,$ttotal,$ytotal);
|
|
|
|
$this->assign('total', $total);
|
|
|
|
$this->assign('total', $total);
|
|
|
|
$this->assign('ttotal', $ttotal);
|
|
|
|
$this->assign('ttotal', $ttotal);
|
|
|
|
$this->assign('ytotal', $ytotal);
|
|
|
|
$this->assign('ytotal', $ytotal);
|
|
|
|