优化推广员统计

master
chenzhi 4 years ago
parent 6c46dd0ea5
commit 7ca675b520

@ -255,7 +255,6 @@ class PlatformController extends ThinkController
"pay_time"=>["between",$yearMap],
"pay_status"=>1
];
D("Spend")->addSubsiteWhere($map);
$Payamount = SM("Spend","tab_")->field("sum(IF(is_check=1,pay_amount,0)) pay_amount,IFNULL(sum(IF(is_check=2,pay_amount,0)),0) unpay_amount,FROM_UNIXTIME(`pay_time`, '%Y-%m') paytime")->where($map)->group("paytime")->select();
if(empty($Payamount)) return ;
foreach ($Payamount as $v) {

@ -36,7 +36,7 @@
</div>
<h3 class="page_title">推广员充值统计</h3>
<p class="description_text">说明:针对所有推广员下的充值金额,进行充值排行统计:游戏、平台币、绑币的现金充值总额</p>
<p class="description_text">说明:针对所有推广员下的充值金额,进行充值排行统计:游戏、平台币、绑币的现金充值总额<if condition="IS_SUBSITE">/ <span style="color: red;">支付信息仅统计已固定的订单数据</span></if></p>
</div>
<div class="cf top_nav_list">

Loading…
Cancel
Save