This commit is contained in:
邓皓元 2020-01-07 09:02:02 +08:00
parent 4af72e4dd0
commit afae5427cb

View File

@ -182,8 +182,8 @@ class PropertyService extends Service
return $item->company_id . '_' . $item->package_id; return $item->company_id . '_' . $item->package_id;
})->toArray(); })->toArray();
$sells = app(OrderCardPartitionRepository::class)->selectRaw('company_id, package_id, count(*) as counts') $sells = app(OrderCardPartitionRepository::class)->table('virtual_order_cards')->selectRaw('company_id, package_id, count(*) as counts')
->where('type', 0)->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) { ->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) {
return $item->company_id . '_' . $item->package_id; return $item->company_id . '_' . $item->package_id;
})->toArray(); })->toArray();