作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

后台业务员列表历史总收入修改

... ... @@ -44,9 +44,8 @@ class SalesmanController extends AdminBaseController{
$data_arr['data'][$key]['money'] = $data_money['platform_ratio'];
// 获取提现数据
$ti_count = Db::name('money_expend')->where('uid',$val['uid'])->where('state',1)->sum('money');// 已提金额
$unti_count = Db::name('money_expend')->where('uid',$val['uid'])->where('state',0)->sum('money');// 提现审核中金额
$data_arr['data'][$key]['ti_count'] = $ti_count;
$data_arr['data'][$key]['all_count'] = $ti_count + $unti_count + $val['balance'];
$data_arr['data'][$key]['all_count'] = Db::name('money_income')->where('uid',$val['uid'])->sum('money');
}
$this -> assign('data_arr',$data_arr['data']);
$this -> assign('data',$data);
... ...