sells
This commit is contained in:
parent
bfc91a9b48
commit
1e27e3feb2
@ -184,9 +184,9 @@ class PropertyService extends Service
|
||||
})->toArray();
|
||||
|
||||
$sells = DB::table('virtual_order_cards')->selectRaw('company_id, package_id, count(*) as counts')
|
||||
->groupBy(['company_id', 'package_id'])->get()->collect()->keyBy(function ($item) {
|
||||
->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) {
|
||||
return $item->company_id . '_' . $item->package_id;
|
||||
})->toArray();
|
||||
})->collect()->toArray();
|
||||
|
||||
// $actives = app(OrderCardPartitionRepository::class)->selectRaw('company_id, package_id, count(*) as counts')
|
||||
// ->withConditions(['type' => 0, 'card_status' => 2])->groupBy(['company_id', 'package_id'])->get()->keyBy(function ($item) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user