游戏充值统计检索条件修正

master
zhengyongxing 5 years ago
parent 1d69c616d6
commit b96e65b8fe

@ -1079,7 +1079,7 @@ class FinanceController extends ThinkController
//推广后台
$spreadData = M("coin_pay_order","tab_")
->field("pay_way,'' as pay_type,sum(real_amount) as pay_amount")
->field("pay_way,'' as pay_type,sum(pay_amount) as pay_amount")
->where([
'order_status'=>['egt',1],
'pay_way'=>['egt',1],'pay_time'=>$time

@ -137,12 +137,12 @@ class PlatformController extends ThinkController
//为数据权限添加
setPowerPromoteIds($map);
$map['game_id'] = array('gt', 0);
// var_dump($_REQUEST);exit;
if (isset($_REQUEST['game_name']) && $_REQUEST['game_name'] != '') {
$map['game_id'] = $_REQUEST['game_name'];
unset($_REQUEST['game_name']);
}
$map['game_id'] = array('gt', 0);
$map['pay_status'] = 1;
$today = total(1);
$week = total(2);

Loading…
Cancel
Save