Commit fdfd3958 authored by christ's avatar christ

order_sort

parent 0a7da798
...@@ -407,7 +407,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -407,7 +407,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
public function getOrders($memberId, $pageIndex, $pageSize, $orderState, $keyword) public function getOrders($memberId, $pageIndex, $pageSize, $orderState, $keyword)
{ {
$order = array('gmt_update' => 'desc'); $order = array('add_time' => 'desc');
$orderDao=\DAO\Order\OrderModel::getInstance(); $orderDao=\DAO\Order\OrderModel::getInstance();
$storeId = $this->_getStoreByMemberId($memberId); $storeId = $this->_getStoreByMemberId($memberId);
if (empty($storeId)) { if (empty($storeId)) {
...@@ -436,9 +436,12 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -436,9 +436,12 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
// $where .= ' and han_order.shipping_type=' . ApiConst::bySelf; // $where .= ' and han_order.shipping_type=' . ApiConst::bySelf;
$where=$orderDao->getByselfCondition($storeId); $where=$orderDao->getByselfCondition($storeId);
} else { } else {
// $order=array(
// 'diliveryman_id'=>'asc',
// 'gmt_update'=>'asc'
// );
$order=array( $order=array(
'diliveryman_id'=>'asc', 'add_time'=>'desc'
'gmt_update'=>'asc'
); );
// $where .= ' and han_order.shipping_type=' . ApiConst::bySeller; // $where .= ' and han_order.shipping_type=' . ApiConst::bySeller;
$where=$orderDao->getWaitDeliveryCondition($storeId); $where=$orderDao->getWaitDeliveryCondition($storeId);
...@@ -446,7 +449,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -446,7 +449,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
} else { } else {
$order=array( $order=array(
'gmt_update'=>'desc' 'add_time'=>'desc'
); );
if (!empty($orderState)) { if (!empty($orderState)) {
$where .= ' and han_order.order_state=' . $orderState; $where .= ' and han_order.order_state=' . $orderState;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment