This commit is contained in:
laodaming 2023-08-17 11:44:18 +08:00
parent 3ed2e0e06c
commit 5b4dd9f360

View File

@ -312,6 +312,10 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
//最终值提取最高级别那一层出来
rspList := make([]types.TagItem, 0, len(mapTagLevel))
for prefix, _ := range mapTop {
//大类下没有任何产品则不显示
if len(mapTagLevel[prefix].TagProductList) == 0 {
continue
}
rspList = append(rspList, *mapTagLevel[prefix])
}
//排序