|
@@ -13,6 +13,12 @@ class order_searchControl extends SystemControl
|
|
|
$model_refill_order = Model('refill_order');
|
|
|
$order_list = [];
|
|
|
$_GET['query_start_time'] = $_GET['query_start_time'] ?? date("Y-m-d 00:00:00");
|
|
|
+
|
|
|
+ if (in_array($_GET['order_state'], ['0', '10', '20', '30', '40']))
|
|
|
+ {
|
|
|
+ $condition['vr_order.order_state'] = $_GET['order_state'];
|
|
|
+ }
|
|
|
+
|
|
|
//批量查询,二者都有,以卡号为主
|
|
|
if(!empty($_GET['card_nos'])) {
|
|
|
$card_nos = trim($_GET['card_nos'], ',');
|
|
@@ -20,9 +26,8 @@ class order_searchControl extends SystemControl
|
|
|
} elseif (!empty($_GET['mch_orders'])) {
|
|
|
$mch_orders = rtrim($_GET['mch_orders'], ',');
|
|
|
$condition['refill_order.mch_order'] = ['in', $mch_orders];
|
|
|
- } else {
|
|
|
- $condition = [];
|
|
|
}
|
|
|
+
|
|
|
if(!empty($condition)) {
|
|
|
$condition['refill_order.inner_status'] = 0;
|
|
|
|