ksort
This commit is contained in:
parent
d070a45101
commit
cb29ab302a
@ -187,10 +187,10 @@ class PropertyService extends Service
|
||||
return $item->company_id . '_' . $item->package_id;
|
||||
})->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) {
|
||||
return $item->company_id . '_' . $item->package_id;
|
||||
})->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) {
|
||||
// return $item->company_id . '_' . $item->package_id;
|
||||
// })->toArray();
|
||||
|
||||
$carrierOperators = app(Dicts::class)->get('carrier_operator');
|
||||
|
||||
|
@ -188,6 +188,7 @@ class DatabaseServiceProvider extends ServiceProvider
|
||||
$values = [$values];
|
||||
} else {
|
||||
foreach ($values as $key => $value) {
|
||||
ksort($value);
|
||||
$values[$key] = $value;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user