diff --git a/app/Domains/Virtual/Exports/CardExport.php b/app/Domains/Virtual/Exports/CardExport.php index 3aaa4410..94c32709 100644 --- a/app/Domains/Virtual/Exports/CardExport.php +++ b/app/Domains/Virtual/Exports/CardExport.php @@ -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() diff --git a/app/Domains/Virtual/Http/Controllers/CardController.php b/app/Domains/Virtual/Http/Controllers/CardController.php index f4271864..4e72741e 100644 --- a/app/Domains/Virtual/Http/Controllers/CardController.php +++ b/app/Domains/Virtual/Http/Controllers/CardController.php @@ -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万条,请添加筛选条件后重试');