|
|
|
@ -2144,6 +2144,8 @@ class ExportController extends Controller
|
|
|
|
|
$today=total(1);
|
|
|
|
|
$week=total(2);
|
|
|
|
|
$mounth=total(3);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$data=$user
|
|
|
|
|
->field('fgame_name,fgame_id,date_format(FROM_UNIXTIME( register_time),"%Y-%m-%d") AS time, count(id) as count,
|
|
|
|
|
count(IF(register_time '.$today.',1,null)) as today,
|
|
|
|
@ -2222,6 +2224,8 @@ class ExportController extends Controller
|
|
|
|
|
$today=total(1);
|
|
|
|
|
$week=total(2);
|
|
|
|
|
$mounth=total(3);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$data=$spend
|
|
|
|
|
->field('game_name,game_id,date_format(FROM_UNIXTIME(pay_time),"%Y-%m-%d") AS time, sum(pay_amount) as count,
|
|
|
|
|
sum(IF(pay_time '.$today.',pay_amount,0)) as today,
|
|
|
|
@ -2298,6 +2302,8 @@ class ExportController extends Controller
|
|
|
|
|
$today=total(1);
|
|
|
|
|
$week=total(2);
|
|
|
|
|
$mounth=total(3);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$data=$user
|
|
|
|
|
->field('register_way,date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(id) as count,
|
|
|
|
|
count(IF(register_time '.$today.',1,null)) as today,
|
|
|
|
@ -2370,6 +2376,8 @@ class ExportController extends Controller
|
|
|
|
|
$today=total(1);
|
|
|
|
|
$week=total(2);
|
|
|
|
|
$mounth=total(3);
|
|
|
|
|
//为数据权限添加
|
|
|
|
|
setPowerPromoteIds($map);
|
|
|
|
|
$data=$spend
|
|
|
|
|
->field('pay_way,date_format(FROM_UNIXTIME(pay_time),"%Y-%m-%d") AS time, sum(pay_amount) as count,
|
|
|
|
|
sum(IF(pay_time '.$today.',pay_amount,0)) as today,
|
|
|
|
|