Browse Source

订单统计

gorden 4 months ago
parent
commit
15ab7e5a9e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/admin/controller/order/DishesController.php

+ 2 - 0
app/admin/controller/order/DishesController.php

@@ -86,6 +86,8 @@ class DishesController extends Curd
             $where['order_id'] = ['in', implode(',', $orderIds)];
         } elseif (!empty($payOrderIds)) {
             $where['order_id'] = ['in', implode(',', $payOrderIds)];
+        } else if (!empty($where['order_id'])){
+            $where['order_id'] = ['in' ,[]];
         }
 
         $query = $this->doSelect($where, $field, $order);