stanley-king 2 月之前
父节点
当前提交
374e74cfa0
共有 1 个文件被更改,包括 16 次插入9 次删除
  1. 16 9
      admin/control/ordersendlist.php

+ 16 - 9
admin/control/ordersendlist.php

@@ -261,17 +261,24 @@ class ordersendlistControl extends SystemControl
             $base_cond['refill_order.order_time'] = ['egt', $start];
         }
 
-        [$merchant_stat, $order_stat] = $this->merchant_timeout_stats($base_cond);
+        $order_list = Model('')->table('refill_order,vr_order,merchant')
+            ->join('inner,inner')
+            ->on('refill_order.order_id=vr_order.order_id,refill_order.mchid=merchant.mchid')
+            ->field('refill_order.*,vr_order.order_state,( {$cur_time} - refill_order.order_time - merchant.time_out ) as mtime_out')
+            ->where($base_cond)
+            ->select();
 
-        if (empty($_GET['mchid'])) {
-            $order_count = $order_stat['order_count'];
-        }else{
-            $order_count = $merchant_stat[$_GET['mchid']]['order_count'];
-        }
 
-        $fields = "refill_order.*,vr_order.order_state,( {$cur_time} - refill_order.order_time - merchant.time_out ) as mtime_out";
-        $order_by = "mtime_out desc";
-        $order_list = $model_refill_order->getMerchantTimeOut($base_cond, 200, $order_count, $fields, $order_by);
+//        [$merchant_stat, $order_stat] = $this->merchant_timeout_stats($base_cond);
+
+//        if (empty($_GET['mchid'])) {
+//            $order_count = $order_stat['order_count'];
+//        }else{
+//            $order_count = $merchant_stat[$_GET['mchid']]['order_count'];
+//        }
+
+//        $fields = "refill_order.*,vr_order.order_state,( {$cur_time} - refill_order.order_time - merchant.time_out ) as mtime_out";
+//        $order_by = "mtime_out desc";
 
         $merchant_list = $merchants_getter($all_mchids);