From b1c8ef2e489db5d26ce09e6e64f596568febb09d Mon Sep 17 00:00:00 2001 From: jingchuan Date: Wed, 22 Jul 2026 18:48:21 +0800 Subject: [PATCH] fix(oa-board): scope brand planning rows to new workflows --- .../src/server/services/oa-brand-planning-board.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/furniture-3d-system/src/server/services/oa-brand-planning-board.service.ts b/furniture-3d-system/src/server/services/oa-brand-planning-board.service.ts index 8d4c07a0..9a27dbcb 100644 --- a/furniture-3d-system/src/server/services/oa-brand-planning-board.service.ts +++ b/furniture-3d-system/src/server/services/oa-brand-planning-board.service.ts @@ -381,6 +381,11 @@ function buildSnapshotRows( const graph = graphBySpu.get(product.spu.trim().toUpperCase()) const reviewFlow = findFlow(graph, 'review') const artFlow = findFlow(graph, 'art') + + // The board follows the new-product review workflow. Historical SKU records + // without a matching review flow are not actionable for brand planning. + if (!graph || !reviewFlow) return [] + const taskAssignedAt = dateFromUnknown( readFlowField(artFlow, ['品牌策划主管分配任务结束时间']), ) ?? findTaskDate(artFlow, ['品牌策划主管分配任务'], 'finished')