|
@@ -450,7 +450,6 @@ class refill_order_manualControl extends SystemControl
|
|
|
$condition['refill_order.card_no'] = ['in', $card_nos];
|
|
|
}
|
|
|
|
|
|
- $merchant_list = $this->merchants();
|
|
|
$transfer = new refill\transfer();
|
|
|
$mMchid2Infos = $transfer->transfers();
|
|
|
|
|
@@ -461,7 +460,9 @@ class refill_order_manualControl extends SystemControl
|
|
|
|
|
|
// $mchids[] = 1092; //for test
|
|
|
$condition['inner_status'] = 0;
|
|
|
- if(!empty($mchids)) {
|
|
|
+ if(!empty($input['mchid'])){
|
|
|
+ $condition['mchid'] = $input['mchid'];
|
|
|
+ }elseif(!empty($mchids)) {
|
|
|
$condition['mchid'] = ['in', $mchids];
|
|
|
}
|
|
|
else {
|
|
@@ -475,15 +476,17 @@ class refill_order_manualControl extends SystemControl
|
|
|
['egt', $start_day],
|
|
|
['lt', $cur_time]];
|
|
|
|
|
|
+ $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');
|
|
|
- return $this->OrderDataFormat($order_list, $merchant_list);
|
|
|
+ return [$order_list, $merchant_list];
|
|
|
}
|
|
|
|
|
|
public function transfer_orderOp()
|
|
|
{
|
|
|
$condition['vr_order.order_state'] = ORDER_STATE_SEND;
|
|
|
- $order_list = $this->transfer_orderData($_GET, $condition);
|
|
|
+ [$order_list, $merchant_list] = $this->transfer_orderData($_GET, $condition);
|
|
|
Tpl::output('list', $order_list);
|
|
|
+ Tpl::output('merchant_list', $merchant_list);
|
|
|
Tpl::output('show_page', Model('')->showpage());
|
|
|
Tpl::showpage('transfer.order');
|
|
|
}
|
|
@@ -520,9 +523,10 @@ class refill_order_manualControl extends SystemControl
|
|
|
public function transfer_order_rechargeOp()
|
|
|
{
|
|
|
$condition['vr_order.order_state'] = ORDER_STATE_CANCEL;
|
|
|
- $order_list = $this->transfer_orderData($_GET, $condition);
|
|
|
+ [$order_list, $merchant_list] = $this->transfer_orderData($_GET, $condition);
|
|
|
|
|
|
Tpl::output('list', $order_list);
|
|
|
+ Tpl::output('merchant_list', $merchant_list);
|
|
|
Tpl::output('show_page', Model('')->showpage());
|
|
|
Tpl::showpage('transfer.order.recharge');
|
|
|
}
|