shish 2 years ago
parent
commit
6eaf79e3fa
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app-ghs/controllers/StatItemController.php

+ 5 - 0
app-ghs/controllers/StatItemController.php

@@ -57,6 +57,11 @@ class StatItemController extends BaseController
         $totalMl = 0;
         foreach ($list as $order) {
             $orderSn = $order['orderSn'] ?? '';
+            $status = $order['status'] ?? 0;
+            $book = $order['book'] ?? 0;
+            if ($status == 5 || $status == 1 || ($book == 1 && $status == 2)) {
+                continue;
+            }
             $itemList = OrderItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*', null, true);
             if (!empty($itemList)) {
                 foreach ($itemList as $item) {