weizong song 2 years ago
parent a5dc5de9f4
commit 74ffcd88f9

@ -96,9 +96,11 @@ class StatisticsController extends CommonController
->whereHas("order", function ($query) use ($project_id) {
$query->where("project_id", $project_id);
})
->with(["order", "product", "productItem", "productParamedicLevel", "paramedic", "bed", "room", "building", "area"])
->with(["order", "product", "productItem", "productParamedicLevel", "paramedic" => function($query) {
$query->withTrashed();
}, "bed", "room", "building", "area"])
->orderBy("id");
}])->withTrashed()->get();
}])->get();
$allItems = collect();
foreach ($paramedics as $paramedic) {

Loading…
Cancel
Save