|
@@ -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);
|
|
|
|