测试订单列表与录入bug修改

master
zhengyongxing 5 years ago
parent 2d0d59c0a5
commit a9924e67c1

@ -47,7 +47,7 @@ class TestOrderController extends ThinkController
$timeend = strtotime($_REQUEST['timeend'])+86399;
$map['pay_time'] = array("ELT",$timeend);
}
$order_list = M('test_order', 'tab_')->where($map)->page($page,$row)->select();
$order_list = M('test_order', 'tab_')->where($map)->page($page,$row)->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();

Loading…
Cancel
Save