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