|
|
|
@ -21,9 +21,10 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
$_REQUEST['sdk_version']?($map['sdk_version'] = $_REQUEST['sdk_version']):'';
|
|
|
|
|
|
|
|
|
|
$data = M("settleup_marketorder","tab_")
|
|
|
|
|
->field("pay_time,promote_account,company_belong,real_name,develop_type,game_name,
|
|
|
|
|
->field("pay_time,promote_account,company_belong,member.real_name,develop_type,game_name,
|
|
|
|
|
sum(pay_amount) pay_amount,sum(cp_amount) cp_amount,sum(promote_amount) promote_amount,
|
|
|
|
|
sum(channel_amount) channel_amount, sum(company_tax) company_tax,sum(company_profit) company_profit");
|
|
|
|
|
sum(channel_amount) channel_amount, sum(company_tax) company_tax,sum(company_profit) company_profit")
|
|
|
|
|
->join("left join sys_member member on access.uid=admin_id");
|
|
|
|
|
|
|
|
|
|
if ($_REQUEST['export']) {
|
|
|
|
|
$data = $data->where($map)
|
|
|
|
@ -126,10 +127,11 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
|
|
|
|
|
// dump(getMarketAdmin());die();
|
|
|
|
|
$data = M("settleup_marketorder","tab_")
|
|
|
|
|
->field("pay_time,promote_account,company_belong,real_name,develop_type,game_name,
|
|
|
|
|
->field("pay_time,promote_account,company_belong,member.real_name,develop_type,game_name,
|
|
|
|
|
sum(pay_amount) pay_amount,sum(company_profit) company_profit,group_id,market_percentage")
|
|
|
|
|
->join("left join sys_auth_group_access access on admin_id=access.uid")
|
|
|
|
|
->join("left join sys_auth_group auth on access.group_id=auth.id");
|
|
|
|
|
->join("left join sys_auth_group auth on access.group_id=auth.id")
|
|
|
|
|
->join("left join sys_member member on access.uid=member.uid");
|
|
|
|
|
|
|
|
|
|
if ($_REQUEST['export']) {
|
|
|
|
|
$data = $data->where($map)
|
|
|
|
@ -225,10 +227,10 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
$_REQUEST['group_id']?($map['group_id'] = $_REQUEST['group_id']):'';
|
|
|
|
|
|
|
|
|
|
$admin_id = $_SESSION['onethink_admin']['user_auth']['uid'];
|
|
|
|
|
$map['admin_id'] = $admin_id;
|
|
|
|
|
// $map['admin_id'] = $admin_id;
|
|
|
|
|
|
|
|
|
|
$data = M("settleup_marketorder","tab_")
|
|
|
|
|
->field("tab_settleup_marketorder.id,pay_time,promote_account,company_belong,tab_settleup_marketorder.real_name,develop_type,game_name,
|
|
|
|
|
->field("tab_settleup_marketorder.id,pay_time,promote_account,company_belong,member.real_name,develop_type,game_name,
|
|
|
|
|
sum(pay_amount) pay_amount,sum(company_profit) company_profit,group_id,market_percentage,nickname,admin_id")
|
|
|
|
|
->join("left join sys_auth_group_access access on admin_id=access.uid")
|
|
|
|
|
->join("left join sys_auth_group auth on access.group_id=auth.id")
|
|
|
|
|