|
@@ -873,10 +873,6 @@ class merchantControl extends SystemControl
|
|
|
$order_list = $model_refill_order->getMerchantOrderList($condition, 50, 'refill_order.*,vr_order.order_state', 'refill_order.order_time desc');
|
|
|
|
|
|
$stat = $this->all_order_state_stat($condition);
|
|
|
- $count = $this->refill_stat($condition ,
|
|
|
- [['between', [(time() - 3600) , (time() - 1800)]],
|
|
|
- ['lt', (time() - 3600)]]
|
|
|
- );
|
|
|
foreach ($order_list as $order_id => $order_info)
|
|
|
{
|
|
|
$order_list[$order_id]['card_type_text'] = $this->scard_type($order_info['card_type']);
|
|
@@ -895,7 +891,6 @@ class merchantControl extends SystemControl
|
|
|
$provider_list = Model('')->table('refill_provider,store')->field('refill_provider.*,store.store_name')->join('inner')->on('store.store_id=refill_provider.store_id')->limit(100)->select();
|
|
|
|
|
|
Tpl::output('stat', $stat);
|
|
|
- Tpl::output('count', $count);
|
|
|
Tpl::output('order_list', $order_list);
|
|
|
Tpl::output('provider_list', $provider_list);
|
|
|
Tpl::output('merchant_list', $merchant_list);
|
|
@@ -1402,10 +1397,10 @@ class merchantControl extends SystemControl
|
|
|
->on('refill_order.order_id=vr_order.order_id')
|
|
|
->field('count(*) as order_count ,sum(refill_amount) as refill_amounts, sum(channel_amount) as channel_amounts, sum(mch_amount) as mch_amounts')
|
|
|
->where($condition)->find();
|
|
|
- $count = $this->refill_stat($condition , [
|
|
|
- ['between', [(time() - 300) , (time() - 180)]],
|
|
|
- ['lt', (time() - 300)]
|
|
|
- ]);
|
|
|
+ $count = $this->refill_stat($condition ,
|
|
|
+ [['between', [(time() - 3600) , (time() - 1800)]],
|
|
|
+ ['lt', (time() - 3600)]]
|
|
|
+ );
|
|
|
foreach ($order_list as $order_id => $order_info) {
|
|
|
$order_list[$order_id]['card_type_text'] = $this->scard_type($order_info['card_type']);
|
|
|
$order_list[$order_id]['mch_name'] = $merchants[$order_info['mchid']]['company_name'];
|