fix
This commit is contained in:
@@ -114,15 +114,12 @@ func (l *OtherProductListLogic) getRandom(productIds []int64,limit int)(result [
|
||||
mapProduct[v.Id] = k
|
||||
}
|
||||
//查询最新的sku
|
||||
sortNeq := int64(0)
|
||||
reqStatus := int64(1)
|
||||
productTemplateIds,err := l.svcCtx.AllModels.FsProductTemplateV2.GetProductTemplateListByParams(l.ctx,gmodel.GetProductTemplateListByParamsReq{
|
||||
ProductIds: newProductIds,
|
||||
GroupBy: "product_id",
|
||||
OrderBy: "id DESC,sort DESC",
|
||||
Fields: "product_id,max(id) as id",
|
||||
SortNeq: &sortNeq,
|
||||
TitleKeyword: "A007",
|
||||
Status: &reqStatus,
|
||||
})
|
||||
if err != nil{
|
||||
|
||||
Reference in New Issue
Block a user