liyinglin 2 years ago
parent e11721409c
commit 6d4b018166

@ -244,7 +244,7 @@ class OrdersController extends CommonController
->orderBy("bed.name");
}])->orderBy("building.myindex")
->orderBy("area.myindex")
->select("area.id", "area.name", "area.building_id", "area.project_id")
->select("area1.id", "area.name", "area.building_id", "area.project_id")
->addSelect([
'beds_count' => Bed::whereColumn('area_id', 'area.id')->selectRaw('count(1)'),
])

Loading…
Cancel
Save