This commit is contained in:
laodaming 2023-11-08 15:41:03 +08:00
parent d040adc9e8
commit f5ab99ae25

View File

@ -220,7 +220,10 @@ func (l *GetTagProductListLogic) getProductRelationInfo(req getProductRelationIn
if partList.PartList == "" { if partList.PartList == "" {
continue continue
} }
req.MapProductHaveOptionFitting[partList.ProductId] = struct{}{} //两个以上才是有可选配件
if len(strings.Split(partList.PartList, ",")) > 1 {
req.MapProductHaveOptionFitting[partList.ProductId] = struct{}{}
}
} }
//获取产品标签相关属性 //获取产品标签相关属性
productTagPropList, err := l.svcCtx.AllModels.FsProductTagProp.GetTagPropByProductIdsWithProductTag(l.ctx, productIds) productTagPropList, err := l.svcCtx.AllModels.FsProductTagProp.GetTagPropByProductIdsWithProductTag(l.ctx, productIds)