diff --git a/app/Domains/Virtual/Services/PropertyService.php b/app/Domains/Virtual/Services/PropertyService.php index 7ba135a4..4ef56b00 100644 --- a/app/Domains/Virtual/Services/PropertyService.php +++ b/app/Domains/Virtual/Services/PropertyService.php @@ -182,8 +182,8 @@ class PropertyService extends Service return $item->company_id . '_' . $item->package_id; })->toArray(); - $sells = app(OrderCardPartitionRepository::class)->selectRaw('company_id, package_id, count(*) as counts') - ->where('type', 0)->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) { + $sells = app(OrderCardPartitionRepository::class)->table('virtual_order_cards')->selectRaw('company_id, package_id, count(*) as counts') + ->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) { return $item->company_id . '_' . $item->package_id; })->toArray();