|
@@ -756,6 +756,12 @@ class merchantControl extends SystemControl
|
|
|
|
|
|
public function refill_orderOp()
|
|
|
{
|
|
|
+ $fShowStat = $_GET['fShowStat'];
|
|
|
+ $this->refill_order($fShowStat==1);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function refill_order($fShowStat = false)
|
|
|
+ {
|
|
|
$model_refill_order = Model('refill_order');
|
|
|
$condition['inner_status'] = 0;
|
|
|
|
|
@@ -857,7 +863,8 @@ class merchantControl extends SystemControl
|
|
|
$order_list[$order_id]['diff_time'] = $diff_time;
|
|
|
}
|
|
|
|
|
|
- $stat = $this->all_order_state_stat($condition);
|
|
|
+
|
|
|
+
|
|
|
$provider_list = Model('')->table('refill_provider,store')
|
|
|
->field('refill_provider.*,store.store_name')
|
|
|
->join('inner')
|
|
@@ -866,7 +873,11 @@ class merchantControl extends SystemControl
|
|
|
->limit(1000)
|
|
|
->select();
|
|
|
|
|
|
- Tpl::output('stat', $stat);
|
|
|
+ if ($fShowStat) {
|
|
|
+ $stat = $this->all_order_state_stat($condition);
|
|
|
+ Tpl::output('stat', $stat);
|
|
|
+ }
|
|
|
+
|
|
|
Tpl::output('ftoday', $fToday);
|
|
|
Tpl::output('order_list', $order_list);
|
|
|
Tpl::output('provider_list', $provider_list);
|