|
@@ -552,7 +552,15 @@ class merchantControl extends SystemControl
|
|
|
$condition['refill_order.mchid'] = $_GET['mchid'];
|
|
|
}
|
|
|
if (!empty($_GET['card_type'])) {
|
|
|
- $condition['refill_order.card_type'] = $_GET['card_type'];
|
|
|
+ if(in_array($_GET['card_type'] , ['1' , '2' , '4' , '5' , '6'])) {
|
|
|
+ $condition['refill_order.card_type'] = $_GET['card_type'];
|
|
|
+ }
|
|
|
+ if($_GET['card_type'] == 'oil') {
|
|
|
+ $condition['refill_order.card_type'] = ['in' , ['1' , '2']];
|
|
|
+ }
|
|
|
+ if($_GET['card_type'] == 'phone') {
|
|
|
+ $condition['refill_order.card_type'] = ['in' , ['4' , '5' , '6']];
|
|
|
+ }
|
|
|
}
|
|
|
if (!empty($_GET['ch_trade_no'])) {
|
|
|
$condition['refill_order.ch_trade_no'] = $_GET['ch_trade_no'];
|
|
@@ -572,6 +580,7 @@ class merchantControl extends SystemControl
|
|
|
$end_unixtime = $if_end_time ? strtotime($_GET['query_end_time']) : null;
|
|
|
if ($start_unixtime || $end_unixtime) {
|
|
|
$condition['refill_order.order_time'] = array('time', array($start_unixtime, $end_unixtime));
|
|
|
+ $condition['refill_order.order_time'] = ['time', [$start_unixtime, $end_unixtime]];
|
|
|
}
|
|
|
$merchant_list = Model('')->table('merchant')->select();
|
|
|
foreach ($merchant_list as $key =>$value) {
|