导出去缓存

This commit is contained in:
邓皓元 2019-08-21 16:18:09 +08:00
parent 2808862b96
commit 1581698170

View File

@ -28,7 +28,7 @@ class OrderCardExport extends AbstractExport implements FromQuery, WithHeadings,
public function query() public function query()
{ {
$builder = app(OrderCardPartitionRepository::class)->with('order')->forceNoReset()->select(['sim', 'order_id', 'counts', 'refunded_at']) $builder = app(OrderCardPartitionRepository::class)->with('order')->forceNoReset()->select(['sim', 'order_id', 'counts', 'refunded_at'])
->withRefunded()->withConditions($this->conditions)->orderBy('order_id')->orderBy('sim'); ->withRefunded()->withConditions($this->conditions)->orderBy('order_id')->orderBy('sim')->skipCache();
return $builder; return $builder;
} }