skipCache
This commit is contained in:
parent
6a9a7935a9
commit
420ecb8b3d
@ -318,7 +318,7 @@ class FlowPoolController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$flowPools = app(FlowPoolRepository::class)->withConditions(['id' => array_unique(array_pluck($data, 'pool_id'))])->get()->keyBy('id')->toArray();
|
$flowPools = app(FlowPoolRepository::class)->skipCache()->withConditions(['id' => array_unique(array_pluck($data, 'pool_id'))])->get()->keyBy('id')->toArray();
|
||||||
|
|
||||||
DB::transaction(function () use ($data, $flowPools) {
|
DB::transaction(function () use ($data, $flowPools) {
|
||||||
$monthGroupBy = array_groupBy($data, 'month');
|
$monthGroupBy = array_groupBy($data, 'month');
|
||||||
@ -338,7 +338,7 @@ class FlowPoolController extends Controller
|
|||||||
$values = array_collapse($simGroupBy);
|
$values = array_collapse($simGroupBy);
|
||||||
|
|
||||||
foreach (array_chunk($values, 1000) as $news) {
|
foreach (array_chunk($values, 1000) as $news) {
|
||||||
$cards = app(OrderCardPartitionRepository::class)->select(['sim', 'package_id'])->withConditions([
|
$cards = app(OrderCardPartitionRepository::class)->select(['sim', 'package_id'])->skipCache()->withConditions([
|
||||||
'type' => [0, 1, 2],
|
'type' => [0, 1, 2],
|
||||||
'sim' => array_pluck($news, 'sim'),
|
'sim' => array_pluck($news, 'sim'),
|
||||||
'month' => substr_replace($month, '-', 4, 0),
|
'month' => substr_replace($month, '-', 4, 0),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user