修复bug:推广员-》数据管理-》实时充值,解决昨日充值与今日充值筛选时间未生效的问题

master
liuweiwen 5 years ago
parent a36be72d9d
commit b8e5d719d5

@ -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);

Loading…
Cancel
Save