feat(product-family): link-level tags (origin_good_tags) with manual override + member detail enrichment

This commit is contained in:
yeuimu
2026-08-28 16:00:46 +08:00
parent 37b52c5ebb
commit 08201f18a4
11 changed files with 477 additions and 87 deletions
@@ -21,17 +21,29 @@ function codeFromCategoryName(categoryName: string | null | undefined): string |
}
const FAMILY_INCLUDE = { originGoods: {
orderBy: { id: 'asc' as const },
select: {
id: true,
sdsGoodId: true,
goodName: true,
goodImage: true,
goodPrice: true,
source: true,
delisted: true,
skuCode: true,
logisticsLabel: true,
craftLabel: true,
warehouseLabel: true,
tagsManual: true,
originGoodTags: {
orderBy: { tagId: 'asc' as const },
select: {
id: true,
manual: true,
tag: { select: { id: true, tagName: true, tagColor: true, tagFontColor: true } },
},
},
_count: { select: { variants: true } },
},
},
priceOverrides: true,