|
@@ -84,17 +84,28 @@ class refill_orderControl extends SystemControl
|
|
|
|
|
|
if ($start_unixtime > 0 && $end_unixtime > $start_unixtime) {
|
|
|
$condition['refill_order.order_time'] = [['egt', $start_unixtime], ['lt', $end_unixtime], 'and'];
|
|
|
+ $condition['vr_order.add_time'] = [['egt', $start_unixtime-1], ['lt', $end_unixtime-1], 'and'];
|
|
|
} elseif ($start_unixtime > 0) {
|
|
|
$condition['refill_order.order_time'] = ['egt', $start_unixtime];
|
|
|
+ $condition['vr_order.add_time'] = ['egt', $start_unixtime-1];
|
|
|
} elseif ($end_unixtime > 0) {
|
|
|
$condition['refill_order.order_time'] = ['lt', $end_unixtime];
|
|
|
+ $condition['vr_order.add_time'] = ['lt', $end_unixtime-1];
|
|
|
} else {
|
|
|
$start = time() - 3600;
|
|
|
$_GET['query_start_time'] = date("Y-m-d H:i:s",$start);
|
|
|
$condition['refill_order.order_time'] = ['egt', $start];
|
|
|
+ $condition['vr_order.add_time'] = ['egt', $start-1];
|
|
|
$fToday = true;
|
|
|
}
|
|
|
|
|
|
+ if(in_array($_GET['cardno_state'], ['0','1', '2', '4', '5'])) {
|
|
|
+ $condition['refill_order.cardno_state'] = $_GET['cardno_state'];
|
|
|
+ }
|
|
|
+ if(in_array($_GET['is_transfer'], ['0','1'])) {
|
|
|
+ $condition['refill_order.is_transfer'] = $_GET['is_transfer'];
|
|
|
+ }
|
|
|
+
|
|
|
if (in_array($_GET['order_state'], ['0', '10', '20', '30', '40']))
|
|
|
{
|
|
|
$condition['vr_order.order_state'] = $_GET['order_state'];
|
|
@@ -102,9 +113,11 @@ class refill_orderControl extends SystemControl
|
|
|
if ($_GET['order_state'] == ORDER_STATE_SEND) {
|
|
|
if ($_GET['time'] == 1) {
|
|
|
$condition['refill_order.order_time'] = ['between', [(time() - 3600), (time() - 1800)]];
|
|
|
+ $condition['vr_order.add_time'] = ['between', [(time() - 3600 - 1), (time() - 1800 - 1)]];
|
|
|
}
|
|
|
if ($_GET['time'] == 2) {
|
|
|
$condition['refill_order.order_time'] = ['lt', (time() - 3600)];
|
|
|
+ $condition['vr_order.add_time'] = ['lt', (time() - 3600 - 1)];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -166,6 +179,7 @@ class refill_orderControl extends SystemControl
|
|
|
if(!empty($condition['refill_order.order_time'])) {
|
|
|
$condition['refill_order.notify_time'] = $condition['refill_order.order_time'];
|
|
|
unset($condition['refill_order.order_time']);
|
|
|
+ unset($condition['vr_order.add_time']);
|
|
|
}
|
|
|
}
|
|
|
$result = $this->getAllOrders($condition);
|