skipCache

This commit is contained in:
邓皓元 2019-10-16 17:09:46 +08:00
parent fb57a11e9f
commit 6a9a7935a9
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ class CardExport extends AbstractExport implements FromQuery, WithHeadings, With
// 添加卡属性匹配查找
CardService::propConditions($this->conditions);
$builder = app(OrderCardPartitionRepository::class)->forceNoReset()->cacheSkip()->withConditions($this->conditions)->orderBy('sim')->applyConditions();
$builder = app(OrderCardPartitionRepository::class)->forceNoReset()->skipCache()->withConditions($this->conditions)->orderBy('sim')->applyConditions();
return $builder;
}

View File

@ -56,7 +56,7 @@ class CardController extends Controller
}
$conditions['type'] = 0;
$total = app(OrderCardPartitionRepository::class)->cacheSkip()->withConditions($conditions)->count();
$total = app(OrderCardPartitionRepository::class)->skipCache()->withConditions($conditions)->count();
if ($total > 250000) {
throw new NotAllowedException('一次性导出数据超过25万条请添加筛选条件后重试');