|
|
@@ -53,7 +53,7 @@ class NewOrderCountingRecordService
|
|
|
public function logisticsCountingRecords($start, $end, $ownerIds)
|
|
|
{
|
|
|
$key = 'logisticsCountingRecords_' . $start . '_' . $end . '_' . json_encode($ownerIds);
|
|
|
- return Cache::remember($key, config('cache.expirations.orderCountingRecord'), function () use ($start, $end, $ownerIds) {
|
|
|
+ return Cache::remember($key, config('cache.expirations.logisticsCountingRecords_'), function () use ($start, $end, $ownerIds) {
|
|
|
$dataList = collect();
|
|
|
$resultOrders = $this->get($start, $end, '日', $ownerIds);
|
|
|
$resultOrders->groupBy('logistic_id')->each(function ($item) use (&$dataList) {
|
|
|
@@ -81,7 +81,7 @@ class NewOrderCountingRecordService
|
|
|
public function warehouseCountingRecords($start, $end, $ownerIds)
|
|
|
{
|
|
|
$key = 'warehouseCountingRecords_' . $start . '_' . $end . '_' . json_encode($ownerIds);
|
|
|
- return Cache::remember($key, config('cache.expirations.orderCountingRecord'), function () use ($start, $end, $ownerIds) {
|
|
|
+ return Cache::remember($key, config('cache.expirations.warehouseCountingRecords_'), function () use ($start, $end, $ownerIds) {
|
|
|
$dataList = collect();
|
|
|
$resultOrders = $this->get($start, $end, '日', $ownerIds);
|
|
|
$resultOrders->groupBy('warehouse_id')->each(function ($item) use (&$dataList) {
|