超级签统计

master
zhanglingsheng 5 years ago
parent a167c51582
commit 244e036a21

@ -2078,11 +2078,19 @@ class ExportController extends Controller
array('device_number', '设备号'),
array('game_name', '游戏'),
array('pay_time', '购买时间'),
array('super_money', '超级签金额'),
array('pay_way', '支付方式'),
array('pay_price', '超级签金额'),
);
$xlsData = M('game_supersign', 'tab_')->field('tab_game_supersign.id,tab_game_supersign.order_id,tab_user.account,tab_user.promote_account,tab_user.device_number,tab_game.game_name,tab_game_supersign.pay_time')->join('tab_user on tab_game_supersign.user_id = tab_user.id')->join('tab_game on tab_game_supersign.game_id = tab_game.id')->where($map)->order('id DESC')->select();
$xlsData = M('game_supersign', 'tab_')->field('tab_game_supersign.id,tab_game_supersign.pay_price,tab_game_supersign.pay_way,tab_game_supersign.order_id,tab_user.account,tab_user.promote_account,tab_user.device_number,tab_game.game_name,tab_game_supersign.pay_time')->join('tab_user on tab_game_supersign.user_id = tab_user.id')->join('tab_game on tab_game_supersign.game_id = tab_game.id')->where($map)->order('id DESC')->select();
foreach($xlsData as $k => $v) {
$xlsData[$k]['pay_time'] = date('Y-m-d H:i:s',$v['pay_time']);
if($v['pay_way'] == 0) {
$xlsData[$k]['pay_way'] = '未知';
}elseif ($v['pay_way'] == 1) {
$xlsData[$k]['pay_way'] = '支付宝';
}elseif ($v['pay_way'] == 2) {
$xlsData[$k]['pay_way'] = '微信';
}
}
break;
case 24:
@ -2451,8 +2459,8 @@ class ExportController extends Controller
->select();
// dd($data);
$map2 = array();
$map2['fgame_id'] = array('egt', 0);
$map2['puid'] = 0;
$map['fgame_id'] = array('egt', 0);
$map['puid'] = 0;
setPowerPromoteIds($map2);
$data2 = $user->field('fgame_id,count(IF(register_time ' . $today . ',1,null)) as today,

File diff suppressed because it is too large Load Diff

@ -116,6 +116,7 @@
<th>设备号</th>
<th>游戏</th>
<th>购买时间</th>
<th>支付方式</th>
<th>超级签金额</th>
</tr>
</thead>
@ -129,6 +130,7 @@
<td>{$vo.device_number}</td>
<td>{$vo.game_name}</td>
<td>{$vo.pay_time|date='Y-m-d H:i:s',###}</td>
<td>{$vo.pay_way}</td>
<td>{$vo.pay_price}</td>
</tr>
</volist>
@ -139,6 +141,7 @@
<td>--</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>{$super_money_all}</td>
</tr>
</tbody>

Loading…
Cancel
Save