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;
|
return $item->company_id . '_' . $item->package_id;
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
||||||
$actives = app(OrderCardPartitionRepository::class)->selectRaw('company_id, package_id, count(*) as counts')
|
// $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) {
|
// ->withConditions(['type' => 0, 'card_status' => 2])->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();
|
||||||
|
|
||||||
$carrierOperators = app(Dicts::class)->get('carrier_operator');
|
$carrierOperators = app(Dicts::class)->get('carrier_operator');
|
||||||
|
|
||||||
|
@ -188,6 +188,7 @@ class DatabaseServiceProvider extends ServiceProvider
|
|||||||
$values = [$values];
|
$values = [$values];
|
||||||
} else {
|
} else {
|
||||||
foreach ($values as $key => $value) {
|
foreach ($values as $key => $value) {
|
||||||
|
ksort($value);
|
||||||
$values[$key] = $value;
|
$values[$key] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user