liyinglin 2 years ago
parent 6ccc7068a5
commit 8a03c5acf1

@ -447,7 +447,7 @@ class StatisticsController extends CommonController
{ {
$total = OrderItems::where('product_item_id', $product_item_id) $total = OrderItems::where('product_item_id', $product_item_id)
->where('factors','like',"\"%factor_item_id\":{$factor_item_id}%") ->where('factors','like',"\"%factor_item_id\":{$factor_item_id}%")
->whereIn('order_id1', $orderIds) ->whereIn('order_id', $orderIds)
->sum('total'); ->sum('total');
return $total; return $total;
} }

Loading…
Cancel
Save