Merge branch 'hotfix/finance_game_name_change_2' of wmtx/platform into release

优化测试服订单
master
廖金灵 5 years ago committed by Gogs
commit 4313c03dc0

@ -2409,35 +2409,35 @@ class ExportController extends Controller
// }
if(isset($params['server_type'])) {
$map['tab_test_order.server_type'] = $params['server_type'];
$map['t.server_type'] = $params['server_type'];
}
if(isset($params['order_type'])) {
$map['tab_test_order.order_type'] = $params['order_type'];
$map['t.order_type'] = $params['order_type'];
}
if(isset($params['order_no'])) {
$map['tab_test_order.order_no'] = $params['order_no'];
$map['t.order_no'] = $params['order_no'];
}
if(isset($params['user_account'])) {
$map['tab_test_order.user_account'] = $params['user_account'];
$map['t.user_account'] = $params['user_account'];
}
if(isset($params['pay_way'])) {
$map['tab_test_order.pay_way'] = $params['pay_way'];
$map['t.pay_way'] = $params['pay_way'];
}
if(!empty($params['timestart']) && !empty($params['timeend'])){
$timestart = strtotime($params['timestart']);
$timeend = strtotime($params['timeend'])+86399;
$map['tab_test_order.pay_time'] = array("between",array($timestart,$timeend));
$map['t.pay_time'] = array("between",array($timestart,$timeend));
}else if(!empty($params['timestart']) && empty($params['timeend'])) {
$timestart = strtotime($params['timestart']);
$map['tab_test_order.pay_time'] = array("EGT",$timestart);
$map['t.pay_time'] = array("EGT",$timestart);
}else if (!empty($params['timeend']) && empty($params['timestart'])) {
$timeend = strtotime($params['timeend'])+86399;
$map['tab_test_order.pay_time'] = array("ELT",$timeend);
$map['t.pay_time'] = array("ELT",$timeend);
}
@ -2445,8 +2445,8 @@ class ExportController extends Controller
->field("t.*,g.sdk_version")
->join("tab_game g on t.game_id = g.id","left")
->where($map)->order('add_time desc')->select();
$sum_order_amount = M('test_order', 'tab_')->where($map)->field('sum(order_amount) as sum_order_amount,count(1) as count')->find();
$sum_pay_amount = M('test_order', 'tab_')->where($map)->field('sum(pay_amount) as sum_order_amount')->find();
$sum_order_amount = M('test_order', 'tab_')->alias("t")->where($map)->field('sum(order_amount) as sum_order_amount,count(1) as count')->find();
$sum_pay_amount = M('test_order', 'tab_')->alias("t")->where($map)->field('sum(pay_amount) as sum_order_amount')->find();
$xlsData = [];
foreach($orderData as $k => $v) {
if ($v['server_type'] == 1) {

@ -402,6 +402,7 @@ class PayChannelController extends ThinkController
$this->assign('channelData2',$channelData);
$this->assign('sum_platform_pay_amount',$sum_platform_pay_amount);
$this->assign('sum_noplatform_pay_amount',$sum_noplatform_pay_amount);
$this->assign('sum_pay_amount',$sum_pay_amount);
$moneyAllCount = array_sum(array_column($channelData, 'pay_amount'));
$this->assign('moneyAllCount',$moneyAllCount);
$this->display();

@ -232,7 +232,7 @@
<td>0.00</td>
<td><if condition="$sum_pay_amount['sum_order_amount'] neq ''">{$sum_pay_amount['sum_order_amount']}<else/>0.00</if></td>
<td>
<a href="{:U('TestOrder/lists')}" >订单查看</a>
<a href="{:U('TestOrder/lists',array_merge([],I('get.')))}" >订单查看</a>
</td>
</tr>
</notemtpy>

@ -155,11 +155,11 @@
<td ><if condition="$data.server_type eq 1">测试内网<else/>测试外网</if></td>
<td >{$data.order_type|get_order_type}</td>
<td >{$data.order_no}</td>
<td >{$data.cp_order_no}</td>
<if condition="$_GET['model'] neq 'game_supersign'"><td >{$data.cp_order_no}</td></if>
<td >{$data.user_account}</td>
<td >{$data.pay_time|date='Y-m-d H:i:s',###}</td>
<td >{$data.game_name}</td>
<td >{$data.sdk_version}</td>
<if condition="$_GET['model'] neq 'deposit'"><td >{$data.game_name}</td></if>
<if condition="$_GET['model'] neq 'deposit'"><td >{$data.sdk_version}</td></if>
<td >{$data.order_amount}</td>
<td >{$data.pay_amount}</td>
<td >{$data.pay_way|get_pay_way}</td>

Loading…
Cancel
Save