|
|
|
@ -742,9 +742,14 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
$admininside = M("provide_user p","tab_")
|
|
|
|
|
->field("order_number,user_account,amount,balance,create_time")
|
|
|
|
|
->join("left join tab_user as u on u.id = p.user_id")
|
|
|
|
|
->page($page, $row)
|
|
|
|
|
->where($pmap)
|
|
|
|
|
->select();
|
|
|
|
|
->where($pmap);
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['export'])){
|
|
|
|
|
$admininside = $admininside->select();
|
|
|
|
|
}else {
|
|
|
|
|
$admininside = $admininside->page($page, $row)->select();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
foreach ($admininside as $k => $v) {
|
|
|
|
|
$temp = [
|
|
|
|
|
"sn"=>$v['order_number'],
|
|
|
|
@ -777,9 +782,12 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
$ininside = M("promote_coin s", "tab_")
|
|
|
|
|
->field($field)
|
|
|
|
|
->where($map)
|
|
|
|
|
->page($page, $row)
|
|
|
|
|
->join("tab_promote promote ON s.promote_id = promote.id", "left")
|
|
|
|
|
->select();
|
|
|
|
|
->join("tab_promote promote ON s.promote_id = promote.id", "left");
|
|
|
|
|
if(isset($_REQUEST['export'])){
|
|
|
|
|
$ininside = $ininside->select();
|
|
|
|
|
}else {
|
|
|
|
|
$ininside = $ininside->page($page, $row)->select();
|
|
|
|
|
}
|
|
|
|
|
foreach ($ininside as $k => $v) {
|
|
|
|
|
$temp = [
|
|
|
|
|
"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);
|
|
|
|
|
$page = set_pagination($count,$row);
|
|
|
|
|
if($page) {$this->assign('_page', $page);}
|
|
|
|
|