diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index 45896187..3a2bd556 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -114,15 +114,15 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR pIsDel := int64(0) pStatus := int64(1) pIsShelf := int64(1) - pReq := gmodel.GetProductListByParamsReq{ + //获取产品列表 + productList, err = l.svcCtx.AllModels.FsProduct.GetProductListByParams(l.ctx, + gmodel.GetProductListByParamsReq{ Type: typeIds, IsDel: &pIsDel, IsShelf: &pIsShelf, Status: &pStatus, OrderBy: "`sort` DESC", - } - //获取产品列表 - productList, err = l.svcCtx.AllModels.FsProduct.GetProductListByParams(l.ctx, pReq) + }) if err != nil { logx.Error(err) return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get product list")