|
|
|
@ -90,6 +90,8 @@ class QueryController extends ThinkController
|
|
|
|
|
$map['smap'] = $smap;
|
|
|
|
|
|
|
|
|
|
$user = A('Settlement', 'Event');
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$user->settlement($model, $p, $map);
|
|
|
|
|
} else {
|
|
|
|
|
$this->display();
|
|
|
|
@ -147,6 +149,8 @@ class QueryController extends ThinkController
|
|
|
|
|
'title' => '结算账单',
|
|
|
|
|
'template_list' => 'settlement',
|
|
|
|
|
);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map1);
|
|
|
|
|
$map1 = $map;
|
|
|
|
|
$ztotal = null_to_0(D('settlement')->where($map1)->sum('sum_money*10000') / 10000);
|
|
|
|
|
$this->assign('ztotal', $ztotal);
|
|
|
|
@ -683,6 +687,9 @@ class QueryController extends ThinkController
|
|
|
|
|
'template_list' => 'withdraw',
|
|
|
|
|
);
|
|
|
|
|
$map1 = array('status' => ['neq', -1]);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map1);
|
|
|
|
|
|
|
|
|
|
$total = null_to_0(D('withdraw')->where($map1)->sum('sum_money'));
|
|
|
|
|
$ttotal = null_to_0(D('withdraw')->where('create_time' . total(1))->where($map1)->sum('sum_money'));
|
|
|
|
|
$ytotal = null_to_0(D('withdraw')->where('create_time' . total(5))->where($map1)->sum('sum_money'));
|
|
|
|
@ -694,7 +701,8 @@ class QueryController extends ThinkController
|
|
|
|
|
$this->m_title = '推广提现';
|
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Query/withdraw', 'status' => 1])->find());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$user->money_list($model, $p, $map);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|