导出去缓存
This commit is contained in:
parent
2808862b96
commit
1581698170
@ -28,7 +28,7 @@ class OrderCardExport extends AbstractExport implements FromQuery, WithHeadings,
|
||||
public function query()
|
||||
{
|
||||
$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;
|
||||
}
|
||||
@ -80,7 +80,7 @@ class OrderCardExport extends AbstractExport implements FromQuery, WithHeadings,
|
||||
CompanyService::load($item['order']['company_id'])['name'] ?? '',
|
||||
$carrierOperators[$carrier_operator],
|
||||
PackageService::load($item['order']['package_id'])['name'] ?? '',
|
||||
sprintf('%.02f', $item['order']['unit_price']/100),
|
||||
sprintf('%.02f', $item['order']['unit_price'] / 100),
|
||||
CommonService::namePayChannel($item['order']['pay_channel']),
|
||||
"{$item['order']['transaction_no']}\t",
|
||||
Carbon::parse($item['order']['order_at'])->format('Y-m-d'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user