公会导出结束

master
chenzhi 5 years ago
parent 2651a94408
commit ae3e5d4048

@ -742,9 +742,14 @@ class FinancePromoteController extends AdminController
$admininside = M("provide_user p","tab_") $admininside = M("provide_user p","tab_")
->field("order_number,user_account,amount,balance,create_time") ->field("order_number,user_account,amount,balance,create_time")
->join("left join tab_user as u on u.id = p.user_id") ->join("left join tab_user as u on u.id = p.user_id")
->page($page, $row) ->where($pmap);
->where($pmap)
->select(); if(isset($_REQUEST['export'])){
$admininside = $admininside->select();
}else {
$admininside = $admininside->page($page, $row)->select();
}
foreach ($admininside as $k => $v) { foreach ($admininside as $k => $v) {
$temp = [ $temp = [
"sn"=>$v['order_number'], "sn"=>$v['order_number'],
@ -777,9 +782,12 @@ class FinancePromoteController extends AdminController
$ininside = M("promote_coin s", "tab_") $ininside = M("promote_coin s", "tab_")
->field($field) ->field($field)
->where($map) ->where($map)
->page($page, $row) ->join("tab_promote promote ON s.promote_id = promote.id", "left");
->join("tab_promote promote ON s.promote_id = promote.id", "left") if(isset($_REQUEST['export'])){
->select(); $ininside = $ininside->select();
}else {
$ininside = $ininside->page($page, $row)->select();
}
foreach ($ininside as $k => $v) { foreach ($ininside as $k => $v) {
$temp = [ $temp = [
"sn"=>$v['sn'], "sn"=>$v['sn'],
@ -796,6 +804,21 @@ class FinancePromoteController extends AdminController
} }
} }
//
if (isset($_REQUEST['export'])) {
$field = array(
"sn"=>"流水号",
"op_type"=>"操作类型",
"op_sty"=>"操作方式",
"account"=>"对手账号类型",
"op_num"=>"平台币数量",
"balance_coin"=>"平台币余额",
"mark"=>"交易说明",
"create_time"=>"交易时间"
);
data2csv($senddata,"平台币内充明细",$field);
}
$this->assign('total_cost', $total_cost); $this->assign('total_cost', $total_cost);
$page = set_pagination($count,$row); $page = set_pagination($count,$row);
if($page) {$this->assign('_page', $page);} if($page) {$this->assign('_page', $page);}

@ -299,7 +299,7 @@
$(".coin-detail").click(function () { $(".coin-detail").click(function () {
var pay_type = $(this).data('pay_type'); var pay_type = $(this).data('pay_type');
var url = $(this).data('url'); var url = $(this).data('url');
var title = pay_type == -1 ? '内充支出明细' : '平台币直充明细'; var title = pay_type == -1 ? '内充支出明细' :(pay_type == 0 ? '平台币直充明细': '平台币内充明细');
layer.open({ layer.open({
type: 2, type: 2,
title: title, title: title,

@ -46,18 +46,6 @@
</div> </div>
<div class="input-list"> <div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('FinancePromote/insideCoinDetail','model='.$model['name'].'&row='.I('row'),false)}"style="">搜索</a> <a class="sch-btn" href="javascript:;" id="search" url="{:U('FinancePromote/insideCoinDetail','model='.$model['name'].'&row='.I('row'),false)}"style="">搜索</a>
<if condition="$_GET['all'] neq 1">
<a class="sch-btn" href="{:U('Export/coinDetail',
array(
'game_id'=>$_GET['game_id'],
'game_name'=>$_GET['game_name'],
'pay_way'=>$_GET['pay_way'],
'timestart'=>$_GET['timestart'],
'timeend'=>$_GET['timeend'],
'user_account'=>$_GET['user_account'],
'pay_order_number'=>$_GET['pay_order_number'],
false))}">导出</a>
</if>
</div> </div>
</div> </div>
</div> </div>
@ -103,6 +91,8 @@
</div> </div>
</div> </div>
<div class="page"> <div class="page">
<a class="sch-btn"
href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}">导出</a>
{$_page} {$_page}
</div> </div>
 

Loading…
Cancel
Save