|
@@ -445,6 +445,7 @@ class refill_order_manualControl extends SystemControl
|
|
|
$mod = Model('refill_order');
|
|
|
$cur_time = time();
|
|
|
$start_day = $cur_time - 86400 * 2;
|
|
|
+ $end_day = $cur_time;
|
|
|
|
|
|
if (!empty($input['mch_orders'])) {
|
|
|
$mch_orders = rtrim($input['mch_orders'],',');
|
|
@@ -473,13 +474,19 @@ class refill_order_manualControl extends SystemControl
|
|
|
else {
|
|
|
return [];
|
|
|
}
|
|
|
+ if(!empty($input['query_start_time'])) {
|
|
|
+ $start_day = strtotime($input['query_start_time']);
|
|
|
+ }
|
|
|
+ if(!empty($input['query_end_time'])) {
|
|
|
+ $end_day = strtotime($input['query_end_time']);
|
|
|
+ }
|
|
|
|
|
|
$condition['vr_order.add_time&vr_order.add_time'] = ['_multi' => true,
|
|
|
['egt', $start_day],
|
|
|
- ['lt', $cur_time]];
|
|
|
+ ['lt', $end_day]];
|
|
|
$condition['refill_order.order_time&refill_order.order_time'] = ['_multi' => true,
|
|
|
['egt', $start_day],
|
|
|
- ['lt', $cur_time]];
|
|
|
+ ['lt', $end_day]];
|
|
|
|
|
|
$merchant_list = $this->merchants(['mchid' => ['in', $mchids]]);
|
|
|
$order_list = $mod->getMerchantOrderList($condition, 200, 0,'refill_order.*,vr_order.order_state', 'refill_order.order_time desc');
|