|
|
@ -183,6 +183,15 @@ class mOrder extends mBase { |
|
|
|
return $this->obj->selectAll($this->order, $where, 'pay_time desc', array($start, $pagesize)); |
|
|
|
} |
|
|
|
|
|
|
|
public function getWaitDeliverOrderList($uid, $shop_id, $page=1, $pagesize=100) { |
|
|
|
$where = array( |
|
|
|
'sql' => '`uid`=? and `shop_id`=? and `order_status`=? and `refund_status`=?', |
|
|
|
'vals' => array($uid, $shop_id, ORDER_STATUS_WAIT_DELIVER_GOODS, REFUND_STATUS_NO_AFTER_SALES) |
|
|
|
); |
|
|
|
$start = ($page - 1) * $pagesize; |
|
|
|
return $this->obj->selectAll($this->order, $where, 'urge_shipping_time desc', array($start, $pagesize)); |
|
|
|
} |
|
|
|
|
|
|
|
public function getNotFinishedOrders() { |
|
|
|
return $this->obj->selectAll($this->order, array('sql'=>'`order_status`!=? and `refund_status`!=?', 'vals'=>array(ORDER_STATUS_SIGNED_FOR, REFUND_STATUS_SUCC))); |
|
|
|
} |
|
|
|