liyinglin 2 years ago
parent 19e6dc5a07
commit 1225c3e753

@ -433,9 +433,9 @@ class StatisticsController extends CommonController
foreach ($factor as $factor_item) {
$total = OrderItems::where('product_item_id', $item->id)
->whereIn("bed_id", $bedIds)
->whereRaw("factors like '%\"factor_item_id\": $factor_item->id%'")
//->whereRaw("factors like '%\"factor_item_id\": $factor_item->id%'")
->sum('total');
dd(DB::getQueryLog());
//dd(DB::getQueryLog());
$list [] = [
'name' => $item->price + $factor_item->price . '元/天',

Loading…
Cancel
Save