分类

parent d8f4b6a9
Showing with 3 additions and 1 deletions
......@@ -168,7 +168,9 @@ func (qs *OptimumService) GetOptimumAttr(ctx *gin.Context) (results model.LyResp
attrValueArr = append(attrValueArr, attr_value_id+"€"+attr_value_name+"€"+ischeck)
}
aggs.Set(attr_name_id+"€"+attr_name, attrValueArr)
if len(attrValueArr) >0 {
aggs.Set(attr_name_id+"€"+attr_name, attrValueArr)
}
}
}
A.Set("aggs", aggs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment