liyinglin 2 years ago
parent 0aecf74e43
commit 4c52a3d472

@ -433,7 +433,7 @@ 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());
$list [] = [

@ -8,6 +8,7 @@
<table class="table table-bordered" id="data-table">
<thead>
<tr>
<th>医院</th>
<th>
楼栋
</th>
@ -21,6 +22,9 @@
<tbody>
@foreach ($data as $row)
<tr data-id="{{$row->id}}">
<td>
{{ $row->project->name }}
</td>
<td>
{{ $row->building->name }}
</td>

Loading…
Cancel
Save