fix
This commit is contained in:
parent
3ed2e0e06c
commit
5b4dd9f360
|
@ -312,6 +312,10 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
|
||||||
//最终值提取最高级别那一层出来
|
//最终值提取最高级别那一层出来
|
||||||
rspList := make([]types.TagItem, 0, len(mapTagLevel))
|
rspList := make([]types.TagItem, 0, len(mapTagLevel))
|
||||||
for prefix, _ := range mapTop {
|
for prefix, _ := range mapTop {
|
||||||
|
//大类下没有任何产品则不显示
|
||||||
|
if len(mapTagLevel[prefix].TagProductList) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
rspList = append(rspList, *mapTagLevel[prefix])
|
rspList = append(rspList, *mapTagLevel[prefix])
|
||||||
}
|
}
|
||||||
//排序
|
//排序
|
||||||
|
|
Loading…
Reference in New Issue
Block a user