total cache

This commit is contained in:
邓皓元 2019-12-16 18:07:47 +08:00
parent a2295deef5
commit 24853b53ad
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ class CardExport extends AbstractExport implements FromQuery, WithHeadings, With
// 添加卡属性匹配查找
CardService::propConditions($this->conditions);
return app(OrderCardPartitionRepository::class)->skipCache()->selectRaw("COUNT(*) AS count")->withConditions($this->conditions)->first()->count;
return app(OrderCardPartitionRepository::class)->selectRaw("COUNT(*) AS count")->withConditions($this->conditions)->first()->count;
}
public function query()

View File

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