|
|
@@ -190,7 +190,7 @@ class OrderCountingRecordService
|
|
|
$key = "order_counting_records_{$dateStr}_{$owner_id}_{$unit}";
|
|
|
$ttl = 3600 * 24;
|
|
|
if ($dateStr==Carbon::now()->toDateString()) {
|
|
|
- $ttl = 60;
|
|
|
+ $ttl = 1;
|
|
|
}
|
|
|
Cache::put($key, $item, $ttl);
|
|
|
});
|
|
|
@@ -267,7 +267,6 @@ class OrderCountingRecordService
|
|
|
});
|
|
|
if ($isHasCurrentDate) {
|
|
|
//删除OrderCountingRecord表中与当前日期相关的数据,之后的批量插入重新插入这部分数据
|
|
|
- dump($currentDate,$unit);
|
|
|
OrderCountingRecord::query()->where('date_target', $currentDate)->where('counting_unit',$unit)->delete();
|
|
|
}
|
|
|
OrderCountingRecord::query()->insert($result->toArray());
|