123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- class order_searchControl extends SystemControl
- {
- public function __construct()
- {
- parent::__construct();
- }
- public function indexOp()
- {
- $model_refill_order = Model('refill_order');
- $order_list = [];
- $_GET['query_start_time'] = $_GET['query_start_time'] ?? date("Y-m-d 00:00:00");
- $rquery = new \refill\rquery($_GET);
- $normal = $rquery->normal_cond_result();
- $time = $rquery->time_cond_result();
- $cond = array_merge($normal, $time);
- $merchant_list = $this->merchants();
- $provider_list = $this->providers();
- if(!empty($normal)) {
- $cond['inner_status'] = 0;
- $order_list = $model_refill_order->getMerchantOrderList($cond, 200, 0,'refill_order.*,vr_order.order_state', 'refill_order.channel_name DESC ');
- $order_list = $this->OrderDataFormat($order_list, $merchant_list);
- }
- Tpl::output('provider_list', $provider_list);
- Tpl::output('merchant_list', $merchant_list);
- Tpl::output('order_list', $order_list);
- Tpl::output('show_page', $model_refill_order->showpage());
- Tpl::showpage('refill.order.search');
- }
- }
|