fix
This commit is contained in:
parent
c49874fec7
commit
d4c77b2a13
|
@ -114,15 +114,15 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR
|
||||||
pIsDel := int64(0)
|
pIsDel := int64(0)
|
||||||
pStatus := int64(1)
|
pStatus := int64(1)
|
||||||
pIsShelf := int64(1)
|
pIsShelf := int64(1)
|
||||||
pReq := gmodel.GetProductListByParamsReq{
|
//获取产品列表
|
||||||
|
productList, err = l.svcCtx.AllModels.FsProduct.GetProductListByParams(l.ctx,
|
||||||
|
gmodel.GetProductListByParamsReq{
|
||||||
Type: typeIds,
|
Type: typeIds,
|
||||||
IsDel: &pIsDel,
|
IsDel: &pIsDel,
|
||||||
IsShelf: &pIsShelf,
|
IsShelf: &pIsShelf,
|
||||||
Status: &pStatus,
|
Status: &pStatus,
|
||||||
OrderBy: "`sort` DESC",
|
OrderBy: "`sort` DESC",
|
||||||
}
|
})
|
||||||
//获取产品列表
|
|
||||||
productList, err = l.svcCtx.AllModels.FsProduct.GetProductListByParams(l.ctx, pReq)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error(err)
|
logx.Error(err)
|
||||||
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get product list")
|
return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to get product list")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user