From 8bf3acece5d87db4e0923f5566afc8a93a705901 Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Tue, 24 Nov 2026 15:36:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=B7=E6=96=B0=E4=B8=9A=E7=BB=A9?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E5=BA=97=E9=93=BA=E7=AD=9B=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Business/Pages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Business/Pages.php b/app/Http/Controllers/Business/Pages.php index 95efe64b..2cf4de99 100644 --- a/app/Http/Controllers/Business/Pages.php +++ b/app/Http/Controllers/Business/Pages.php @@ -1682,12 +1682,13 @@ class Pages extends Controller // 计数与合计合并为一次扫描;已物化的账期直接读差额列,不再逐行执行规则链。 // 数据按天同步,同一组筛选 5 分钟内复用结果,避免来回切换筛选项重复扫整月。 $differenceMaterialized = DifferenceMaterialization::materialized($month); + $dataVersion = DifferenceMaterialization::dataVersion($month); $statsCacheKey = 'performance-details-aggregate-v2:' . md5(serialize([ $month, [$platformFilter, $storeFilter, $statusFilter, $remarkFilter, $unmatchedReasonFilter, $differenceState, $orderNo], $crossMonthOnly, $differenceMaterialized ? 'materialized' : 'live', - DifferenceMaterialization::dataVersion($month), + $dataVersion, ])); [$agg, $differenceTotal] = cache()->remember($statsCacheKey, now()->addMinutes(5), function () use ( @@ -1766,7 +1767,7 @@ class Pages extends Controller // 筛选下拉候选:本月镜像里实际出现的平台与店铺(按 6 小时缓存,避免每次开页做去重扫描), // 并把当前已选值并入,保证筛选项的文字不会因为换月而消失。 $filterOptions = cache()->remember( - 'performance-details-filter-options-v1:' . $month, + 'performance-details-filter-options-v2:' . md5($month . '|' . $dataVersion), now()->addHours(6), static function () use ($connection, $month): array { $maker = static fn () => DB::connection($connection)->table('store_receipt_order_match_rows')