This commit is contained in:
laodaming
2023-07-17 11:42:29 +08:00
parent ae1b3e1e64
commit fffdf448c4
2 changed files with 8 additions and 7 deletions

View File

@@ -116,8 +116,8 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR
sort.Ints(priceSlice)
mapProductMinPrice[v.ProductId] = int64(priceSlice[0])
}
//获取模板
productTemplatesV2, err := l.svcCtx.AllModels.FsProductTemplateV2.FindAllByProductIds(l.ctx, productIds)
//获取模板(只是获取产品product_id)
productTemplatesV2, err := l.svcCtx.AllModels.FsProductTemplateV2.FindAllByProductIds(l.ctx, productIds, "product_id")
if err != nil {
logx.Error(err)
return resp.SetStatusWithMessage(basic.CodeServiceErr, "get product template_v2 err")