|
|
|
@ -446,7 +446,7 @@ class StatisticsController extends CommonController
|
|
|
|
public function lieToMoney($product_item_id, $factor_item_id, $orderIds)
|
|
|
|
public function lieToMoney($product_item_id, $factor_item_id, $orderIds)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$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_id1', $orderIds)
|
|
|
|
->sum('total');
|
|
|
|
->sum('total');
|
|
|
|
return $total;
|
|
|
|
return $total;
|
|
|
|
|