cacheSkip
This commit is contained in:
parent
77221b6502
commit
fb57a11e9f
@ -32,7 +32,7 @@ class CardExport extends AbstractExport implements FromQuery, WithHeadings, With
|
||||
// 添加卡属性匹配查找
|
||||
CardService::propConditions($this->conditions);
|
||||
|
||||
$builder = app(OrderCardPartitionRepository::class)->forceNoReset()->withConditions($this->conditions)->orderBy('sim')->applyConditions();
|
||||
$builder = app(OrderCardPartitionRepository::class)->forceNoReset()->cacheSkip()->withConditions($this->conditions)->orderBy('sim')->applyConditions();
|
||||
|
||||
return $builder;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ class CardController extends Controller
|
||||
}
|
||||
|
||||
$conditions['type'] = 0;
|
||||
$total = app(OrderCardPartitionRepository::class)->withConditions($conditions)->count();
|
||||
$total = app(OrderCardPartitionRepository::class)->cacheSkip()->withConditions($conditions)->count();
|
||||
|
||||
if ($total > 250000) {
|
||||
throw new NotAllowedException('一次性导出数据超过25万条,请添加筛选条件后重试');
|
||||
|
Loading…
x
Reference in New Issue
Block a user