feat(product-family): link-level tags (origin_good_tags) with manual override + member detail enrichment
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user