merchant_order.php 963 B

1234567891011121314151617181920212223242526
  1. <?php
  2. require_once(BASE_ROOT_PATH . '/mobile/control/merchant_base.php');
  3. class merchant_orderControl extends merchant_baseControl
  4. {
  5. public function __construct()
  6. {
  7. parent::__construct();
  8. }
  9. public function listOp(){
  10. $model_vr_order = Model('refill_order');
  11. $condition['mchid'] = $_SESSION['mch_id'];
  12. if ($_GET['card_type'] != '' && $_GET['card_type'] != 0)
  13. {
  14. $condition['refill_order.card_type'] = $_GET['card_type'];
  15. }
  16. if($_GET['start_time'] && $_GET['ent_time']){
  17. $condition['refill_order.order_time'] = ['between', [$_GET['start_time'], $_GET['end_time']]];
  18. }
  19. $order_list = $model_vr_order->getMerchantOrderList($condition, $this->page, '*', 'refill_order.order_id desc');
  20. $result['data'] = $order_list;
  21. $result['total'] = $model_vr_order->gettotalpage();
  22. return self::outsuccess($result);
  23. }
  24. }