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