total cache
This commit is contained in:
parent
a2295deef5
commit
24853b53ad
@ -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()
|
||||
|
@ -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万条,请添加筛选条件后重试');
|
||||
|
Loading…
x
Reference in New Issue
Block a user