liyinglin 2 years ago
parent bc288dfa3c
commit 65b3c0b175

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

Loading…
Cancel
Save