sunhao 5 years ago
parent
commit
95086c9c28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/StatisticsController.php

+ 1 - 1
app/Http/Controllers/Admin/StatisticsController.php

@@ -3633,7 +3633,7 @@ class StatisticsController extends Controller
3633 3633
             }
3634 3634
 
3635 3635
             //新粉成单            
3636
-            $new_order = DB::table('order')->select(DB::raw('sum(receivedAmount) as order_amount, count(1) as order_count'))->leftJoin('customers as cu','cu.phone', '=', 'order.receiverMobile')->whereRaw('left(order.createTime, 10) = cu.fanTime')->where('order.is_del', 0)->where('cu.fanTime','>=',$m_stime)->where('cu.fanTime', '<', $m_etime)->where('admin_id', $v['admin_id'])->first();
3636
+            $new_order = DB::table('order')->select(DB::raw('sum(receivedAmount) as order_amount, count(1) as order_count'))->leftJoin('customers as cu','cu.phone', '=', 'order.receiverMobile')->whereRaw('left(order.createTime, 10) = cu.fanTime')->where('order.is_del', 0)->where('cu.fanTime','>=',$m_stime)->where('cu.fanTime', '<', $m_etime)->where('order.admin_id', $v['admin_id'])->first();
3637 3637
             $v['new_order_count'] = $new_order->order_count;
3638 3638
             $v['new_order_amount'] = $new_order->order_amount;
3639 3639
             //老粉成单