|
|
@@ -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) {
|