songxingwei 2 năm trước cách đây
mục cha
commit
61efb750ff
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/data/controller/shop/Order.php

+ 2 - 2
app/data/controller/shop/Order.php

@@ -70,10 +70,10 @@ class Order extends Controller
         }
         // 状态数据统计
         $this->total = ['t0' => 0, 't2' => 0, 't3' => 0, 't4' => 0, 't5' => 0, 't6' => 0, 't7' => 0, 't8' => 0, 'ta' => 0];
-        foreach (ShopOrder::mk()->where($admin_id)->field('status,count(1) total')->group('status')->cursor() as $vo) {
+        foreach (ShopOrder::mk()->where($admin_id)->field('status,count(1) total')
+                     ->group('status')->cursor() as $vo) {
             [$this->total["t{$vo['status']}"] = $vo['total'], $this->total["ta"] += $vo['total']];
         }
-        dump($this->total);die;
         // 订单列表查询
         $query = ShopOrder::mQuery()->where($admin_id);
         $query->like('order_no,truck_name,truck_phone,truck_province|truck_area|truck_address#address,truck_send_no,truck_send_name');