|
|
@ -4568,6 +4568,8 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
'玩家账号',
|
|
|
|
'玩家账号',
|
|
|
|
'游戏订单',
|
|
|
|
'游戏订单',
|
|
|
|
'订单金额',
|
|
|
|
'订单金额',
|
|
|
|
|
|
|
|
'折扣金额',
|
|
|
|
|
|
|
|
'实付金额',
|
|
|
|
'支付方式',
|
|
|
|
'支付方式',
|
|
|
|
'充值状态',
|
|
|
|
'充值状态',
|
|
|
|
'游戏名称',
|
|
|
|
'游戏名称',
|
|
|
@ -4673,6 +4675,8 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
|
|
|
|
|
|
|
|
$csvData["user_account"] = $value1["user_account"];
|
|
|
|
$csvData["user_account"] = $value1["user_account"];
|
|
|
|
$csvData["pay_order_number"] = $value1["pay_order_number"];
|
|
|
|
$csvData["pay_order_number"] = $value1["pay_order_number"];
|
|
|
|
|
|
|
|
$csvData["cost"] = $value1["cost"];
|
|
|
|
|
|
|
|
$csvData["discount_amount"] = $value1["discount_amount"];
|
|
|
|
$csvData["pay_amount"] = $value1["pay_amount"];
|
|
|
|
$csvData["pay_amount"] = $value1["pay_amount"];
|
|
|
|
$csvData["pay_way"] = $value1["pay_way"];
|
|
|
|
$csvData["pay_way"] = $value1["pay_way"];
|
|
|
|
$csvData['pay_status'] = $value1['pay_status'];
|
|
|
|
$csvData['pay_status'] = $value1['pay_status'];
|
|
|
@ -4693,17 +4697,18 @@ public function iosDetailExcelInfo($id,$map) {
|
|
|
|
ob_flush();
|
|
|
|
ob_flush();
|
|
|
|
flush();
|
|
|
|
flush();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$income = '0.00';
|
|
|
|
$aggregation = M('Spend', 'tab_')
|
|
|
|
$income = M('Spend', 'tab_')
|
|
|
|
->field('sum(tab_spend.cost) as cost, sum(tab_spend.pay_amount) as pay_amount, sum(tab_spend.discount_amount) as discount_amount')
|
|
|
|
->field('sum(tab_spend.pay_amount) as income')
|
|
|
|
|
|
|
|
->join('tab_game on tab_spend.game_id = tab_game.id')
|
|
|
|
->join('tab_game on tab_spend.game_id = tab_game.id')
|
|
|
|
->join('left join tab_promote on tab_spend.promote_id = tab_promote.id')
|
|
|
|
->join('left join tab_promote on tab_spend.promote_id = tab_promote.id')
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->order('tab_spend.id desc')
|
|
|
|
->order('tab_spend.id desc')
|
|
|
|
->find()['income'];
|
|
|
|
->find();
|
|
|
|
$csvData1["user_account"] = "合计";
|
|
|
|
$csvData1["user_account"] = "合计";
|
|
|
|
$csvData1["pay_order_number"] = "--";
|
|
|
|
$csvData1["pay_order_number"] = "--";
|
|
|
|
$csvData1["pay_amount"] = $income;
|
|
|
|
$csvData1["cost"] = $aggregation['cost'];
|
|
|
|
|
|
|
|
$csvData1["discount_amount"] = $aggregation['discount_amount'];
|
|
|
|
|
|
|
|
$csvData1["pay_amount"] = $aggregation['pay_amount'];
|
|
|
|
$csvData1["pay_way"] = "--";
|
|
|
|
$csvData1["pay_way"] = "--";
|
|
|
|
$csvData1['pay_status'] = "--";
|
|
|
|
$csvData1['pay_status'] = "--";
|
|
|
|
$csvData1["game_name"] = "--";
|
|
|
|
$csvData1["game_name"] = "--";
|
|
|
|