liyinglin 2 years ago
parent 5f11bc24de
commit 2bb28f4a9c

@ -91,7 +91,7 @@ class HomeController extends CommonController
} }
// 本月陪护订单 // 本月陪护订单
$monthAccompany = Project::get(); $monthAccompany = Project::get();
foreach ($income as $item) { foreach ($monthAccompany as $item) {
$item->total = Orders::where('project_id', $item->id) $item->total = Orders::where('project_id', $item->id)
->where('created_at', 'like', '%' . date('Y-m') . '%') ->where('created_at', 'like', '%' . date('Y-m') . '%')
->count(); ->count();

Loading…
Cancel
Save