Browse Source

优化首页统计逻辑2

master
wanghongjun 4 weeks ago
parent
commit
3fad01ffb9
  1. 2
      app/Http/Controllers/Admin/IndexController.php

2
app/Http/Controllers/Admin/IndexController.php

@ -86,7 +86,7 @@ class IndexController extends BaseController
]; ];
$type_count = ParkingSpace::query()->where($spaceWhere) $type_count = ParkingSpace::query()->where($spaceWhere)
->whereIn('status', $statusArr) ->whereIn('status', $statusArr)
->whereIn('id', $spaceTypeIds) ->whereIn('id', $spaceIds)
->count(); ->count();
$type_list[] = [ $type_list[] = [
'count' => $type_count, 'count' => $type_count,

Loading…
Cancel
Save