1234567891011121314151617181920212223242526 |
- <?php
- require_once(BASE_ROOT_PATH . '/mobile/control/merchant_base.php');
- class merchant_orderControl extends merchant_baseControl
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function listOp(){
- $model_vr_order = Model('refill_order');
- $condition['mchid'] = $_SESSION['mch_id'];
- if ($_GET['card_type'] != '' && $_GET['card_type'] != 0)
- {
- $condition['refill_order.card_type'] = $_GET['card_type'];
- }
- if($_GET['start_time'] && $_GET['ent_time']){
- $condition['refill_order.order_time'] = ['between', [$_GET['start_time'], $_GET['end_time']]];
- }
- $order_list = $model_vr_order->getMerchantOrderList($condition, $this->page, '*', 'refill_order.order_id desc');
- $result['data'] = $order_list;
- $result['total'] = $model_vr_order->gettotalpage();
- return self::outsuccess($result);
- }
- }
|