From 524a81b2ffd14917fed4ba245c8c757e00880304 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Thu, 27 Jun 2024 15:55:24 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/StatisticsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/StatisticsController.php b/app/Http/Controllers/Admin/StatisticsController.php index c68a056..2cffbae 100755 --- a/app/Http/Controllers/Admin/StatisticsController.php +++ b/app/Http/Controllers/Admin/StatisticsController.php @@ -548,7 +548,7 @@ class StatisticsController extends CommonController $area = Area::withCount('beds')->where('project_id', $project_id)->get(); foreach ($area as $item) { - $beds = Bed::where('area_id', $area->id)->where('project_id', $project_id)->get(); + $beds = Bed::where('area_id', $item->id)->where('project_id', $project_id)->get(); // 订单总数 $orderTotal = Orders::where('project_id', $project_id) ->where('created_at', 'like', '%' . $month . '%')