|
|
@ -47,7 +47,7 @@ class TestOrderController extends ThinkController
|
|
|
|
$timeend = strtotime($_REQUEST['timeend'])+86399;
|
|
|
|
$timeend = strtotime($_REQUEST['timeend'])+86399;
|
|
|
|
$map['pay_time'] = array("ELT",$timeend);
|
|
|
|
$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_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_pay_amount = M('test_order', 'tab_')->where($map)->field('sum(pay_amount) as sum_order_amount')->find();
|
|
|
|
|
|
|
|
|
|
|
|