sells
This commit is contained in:
parent
afae5427cb
commit
50ef1f2a3b
@ -3,6 +3,7 @@ namespace App\Domains\Virtual\Services;
|
||||
|
||||
use App\Dicts;
|
||||
use App\Core\Service;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Exceptions\NotExistException;
|
||||
use App\Exceptions\NotAllowedException;
|
||||
use App\Models\Virtual\PropertySetting;
|
||||
@ -182,7 +183,7 @@ class PropertyService extends Service
|
||||
return $item->company_id . '_' . $item->package_id;
|
||||
})->toArray();
|
||||
|
||||
$sells = app(OrderCardPartitionRepository::class)->table('virtual_order_cards')->selectRaw('company_id, package_id, count(*) as counts')
|
||||
$sells = DB::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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user