shish 5 mēneši atpakaļ
vecāks
revīzija
8d4b6246fb
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      app-ghs/controllers/StatItemController.php

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

@@ -82,9 +82,14 @@ class StatItemController extends BaseController
             $orderSn = $order['orderSn'] ?? '';
             $status = $order['status'] ?? 0;
             $book = $order['book'] ?? 0;
+            $actPrice = $order['actPrice'] ?? 0;
             if ($status == 5 || $status == 1 || ($book == 1 && $status == 2)) {
                 continue;
             }
+            if ($actPrice <= 0) {
+                //如果全部退款的花材也不统计
+                continue;
+            }
             $itemList = OrderItemClass::getAllByCondition(['orderSn' => $orderSn], null, '*', null, true);
             if (!empty($itemList)) {
                 foreach ($itemList as $item) {