fix
This commit is contained in:
parent
edd19afcf3
commit
cd5990ca62
|
@ -370,20 +370,14 @@ func (l *GetTagProductListLogic) organizationLevelRelation(minLevel int, mapTagL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//最终值提取最高级别那一层出来
|
//最终值提取最高级别那一层出来
|
||||||
//rspList := make([]types.TagItem, 0, len(mapTagLevel))
|
|
||||||
for prefix, _ := range mapTop {
|
for prefix, _ := range mapTop {
|
||||||
//大类下没有任何产品则不显示
|
//大类下没有任何产品则不显示
|
||||||
if len(mapTagLevel[prefix].TagProductList) == 0 {
|
if len(mapTagLevel[prefix].TagProductList) == 0 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
productCount += len(mapTagLevel[prefix].TagProductList)
|
productCount += len(mapTagLevel[prefix].TagProductList)
|
||||||
//rspList = append(rspList, *mapTagLevel[prefix])
|
|
||||||
mapTagRsp[mapTagLevel[prefix].TypeId] = *mapTagLevel[prefix]
|
mapTagRsp[mapTagLevel[prefix].TypeId] = *mapTagLevel[prefix]
|
||||||
}
|
}
|
||||||
//排序
|
|
||||||
/*sort.SliceStable(rspList, func(i, j int) bool {
|
|
||||||
return rspList[i].Sort < rspList[j].Sort
|
|
||||||
})*/
|
|
||||||
return mapTagRsp, productCount
|
return mapTagRsp, productCount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user