|
@@ -613,18 +613,17 @@ class ordersendlistControl extends SystemControl
|
|
|
}
|
|
|
$cur_time = time();
|
|
|
$time = $_GET['time'] * 3600;
|
|
|
- $condition['refill_order.order_time'] = [['gt', ($cur_time - $time)], ['lt', $cur_time], 'and'];
|
|
|
- $condition['vr_order.add_time'] = [['gt', ($cur_time - $time)], ['lt', $cur_time], 'and'];
|
|
|
+ $condition['refill_order.order_time'] = [['egt', ($cur_time - $time)], ['lt', $cur_time], 'and'];
|
|
|
+ $condition['vr_order.add_time'] = [['egt', ($cur_time - $time)], ['lt', $cur_time], 'and'];
|
|
|
|
|
|
$notify_time = $_GET['notify_time'];
|
|
|
if($notify_time > 0) {
|
|
|
$start_day = strtotime("-5 days",$cur_time);
|
|
|
- $condition['refill_order.notify_time'] = ['lt', ($cur_time - $notify_time)];
|
|
|
- $condition['refill_order.notify_time'] = [['gt', $start_day], ['lt', ($cur_time - $notify_time)], 'and'];
|
|
|
+ $condition['refill_order.notify_time'] = [['egt', $start_day], ['lt', ($cur_time - $notify_time)], 'and'];
|
|
|
}
|
|
|
|
|
|
- $order_list = $model_refill_order->getMerchantOrderList($condition, 200, 0,'refill_order.*,vr_order.order_state', 'refill_order.notify_time asc', 1000);
|
|
|
- $merchant_list = Model('')->table('merchant')->limit(1000)->order('name asc')->select();
|
|
|
+ $order_list = $model_refill_order->getMerchantOrderList($condition, 200, 0,'refill_order.*,vr_order.order_state', '', 1000);
|
|
|
+ $merchant_list = $this->merchants();
|
|
|
$order_list = $this->orderFormat($order_list, $merchant_list);
|
|
|
|
|
|
Tpl::output('order_list', $order_list);
|