|
|
|
@ -1312,6 +1312,13 @@ class FinanceController extends ThinkController
|
|
|
|
|
if ($sort == 17) {
|
|
|
|
|
$order = 'restvalue asc';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($sort == 19) {
|
|
|
|
|
$order = 'totalvalue desc';
|
|
|
|
|
}
|
|
|
|
|
if ($sort == 20) {
|
|
|
|
|
$order = 'totalvalue asc';
|
|
|
|
|
}
|
|
|
|
|
$this->assign('sorting', $sort);
|
|
|
|
|
$map5['v.pay_type'] = 1;
|
|
|
|
|
$map5['v.create_time'] = $map['create_time'];
|
|
|
|
@ -1357,6 +1364,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
$ids = [-100];
|
|
|
|
|
}
|
|
|
|
|
$allDatas = [];
|
|
|
|
|
|
|
|
|
|
foreach($datas as $key => $data) {
|
|
|
|
|
$id = $data['id'];
|
|
|
|
|
$account = $data['account'];
|
|
|
|
@ -1372,7 +1380,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
if(empty($deposit)) {
|
|
|
|
|
$deposit = '0.00';
|
|
|
|
|
}
|
|
|
|
|
$promoteCoin = $data['promoteCoin'];
|
|
|
|
|
$promoteCoin = $data['promotecoin'];
|
|
|
|
|
if(empty($promoteCoin)) {
|
|
|
|
|
$promoteCoin = '0.00';
|
|
|
|
|
}
|
|
|
|
@ -1405,8 +1413,7 @@ class FinanceController extends ThinkController
|
|
|
|
|
$map3['create_time'] = $map['create_time'];
|
|
|
|
|
$map3['pay_type'] = 3;
|
|
|
|
|
$allpromoteCoin = M('value_detail_log', 'tab_')->where($map3)->sum('value');
|
|
|
|
|
$allpromoteCoin = empty($promoteCoin) ? '0.00' : number_format($allpromoteCoin,2,'.','');
|
|
|
|
|
|
|
|
|
|
$allpromoteCoin = empty($allpromoteCoin) ? '0.00' : number_format($allpromoteCoin,2,'.','');
|
|
|
|
|
$map4['create_time'] = $map['create_time'];
|
|
|
|
|
if($_REQUEST['user_account']) {
|
|
|
|
|
$banlace = M('value_detail_log', 'tab_')->field('user_id, after_value')->where($map4)->order('create_time desc')->limit(1)->select();
|
|
|
|
|