liyinglin 2 years ago
parent 1a918322c7
commit 73c6f7392c

@ -446,8 +446,9 @@ class StatisticsController extends CommonController
public function lieToMoney($product_item_id, $factor_item_id, $orderIds)
{
$total = OrderItems::where('product_item_id', $product_item_id)
->whereJsonContains('factors->factor_item_id', (string)$factor_item_id)
->whereIn('order_id', $orderIds)
// ->whereJsonContains('factors->factor_item_id', (string)$factor_item_id)
->where('factors','like',"%factor_item_id:{$factor_item_id}%")
->whereIn('order_id1', $orderIds)
->sum('total');
return $total;
}

Loading…
Cancel
Save