From 0ca629518d23c3eaface83fcfbad6a8c776e3a55 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Sat, 4 Jul 2020 18:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E4=B8=93=E5=91=98=E4=B8=9A?= =?UTF-8?q?=E7=BB=A9=E7=BB=93=E7=AE=97=E7=BB=93=E6=9E=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/TimingController.class.php | 18 +++++++++--------- .../Admin/View/PromoteCompany/edit.html | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Application/Admin/Controller/TimingController.class.php b/Application/Admin/Controller/TimingController.class.php index 76e4ed042..b41efc223 100644 --- a/Application/Admin/Controller/TimingController.class.php +++ b/Application/Admin/Controller/TimingController.class.php @@ -773,7 +773,7 @@ class TimingController extends AdminController { ->select(false); $data = M("auth_group_access") - ->field("auth.market_percentage,real_name,sys_member.uid") + ->field("auth.market_percentage,real_name,sys_member.uid,sys_auth_group_access.group_id") ->join("left join ({$data}) auth on auth.id = sys_auth_group_access.group_id") ->join("left join sys_member on sys_member.uid = sys_auth_group_access.uid") ->where("auth.title is not null") @@ -782,7 +782,7 @@ class TimingController extends AdminController { $spend = M("spend","tab_") ->field("sum(pay_amount) as pay_amount,FROM_UNIXTIME(pay_time,'%Y-%m') pay_time, substring_index(substring_index(tab_spend.game_name,'(',1),'(',-1) game_name,game_id,relation_game_id,tab_spend.sdk_version, - CASE WHEN substring_index(substring_index(`chain`,'/',2),'/',-1) !='' THEN substring_index(substring_index(`chain`,'/',2),'/',-1) ELSE promote_id END promote_id,pay_way") + CASE WHEN substring_index(substring_index(`chain`,'/',2),'/',-1) !='' THEN substring_index(substring_index(`chain`,'/',2),'/',-1) ELSE promote_id END promote_id,pay_way,market_admin_id") ->join("left join tab_promote on tab_spend.promote_id = tab_promote.id") ->join("left join tab_game game on game.id=tab_spend.game_id") ->where(['tab_spend.pay_status'=>1,'pay_way'=>['egt',1]]) @@ -793,7 +793,7 @@ class TimingController extends AdminController { $payway_spend = M()->table("({$spend}) spend") ->field("sum(pay_amount) as pay_amount,pay_time,promote_id,game_name,game_id,relation_game_id,pay_way,sdk_version") ->where($map) - ->group("pay_time,promote_id,game_name,pay_way") + ->group("pay_time,promote_id,game_name,pay_way,market_admin_id") ->select(); $channel_fee = []; @@ -856,19 +856,19 @@ class TimingController extends AdminController { } $spend = M()->table("({$spend}) spend") - ->field("sum(pay_amount) as pay_amount,pay_time,promote_id,game_name,game_id,relation_game_id,sdk_version") + ->field("sum(pay_amount) as pay_amount,pay_time,promote_id,game_name,game_id,relation_game_id,sdk_version,market_admin_id") ->where($map) - ->group("pay_time,promote_id,game_name") + ->group("pay_time,promote_id,game_name,market_admin_id") ->select(false); $promote_data = M()->table("({$spend}) spend") - ->field("pay_time,company_id,account as promote_account,company.company_belong,develop_type,spend.promote_id,spend.game_name,game_id,relation_game_id,spend.pay_amount,auth.real_name,auth.uid as admin_id,market_percentage,sdk_version") + ->field("pay_time,company_id,account as promote_account,company.company_belong,develop_type,spend.promote_id,spend.game_name,game_id,relation_game_id,spend.pay_amount,auth.real_name,market_admin_id as admin_id,market_percentage,sdk_version") ->join("left join tab_promote promote on spend.promote_id = promote.id") ->join("left join tab_promote_company company on promote.company_id = company.id") - ->join("left join ({$data}) auth on auth.uid=admin_id") - ->where(['develop_type'=>['egt',1]]) + ->join("left join ({$data}) auth on auth.uid=market_admin_id") + ->where(['develop_type'=>['egt',1],'group_id'=>['in',['11','12','21']]]) ->select(); -// dump($promote_data);die(); +// dump($spend);die(); // // dump($tax_radio);die(); diff --git a/Application/Admin/View/PromoteCompany/edit.html b/Application/Admin/View/PromoteCompany/edit.html index 30be1cfa6..e9768e68a 100644 --- a/Application/Admin/View/PromoteCompany/edit.html +++ b/Application/Admin/View/PromoteCompany/edit.html @@ -198,7 +198,7 @@ 开发类型: