This commit is contained in:
laodaming
2023-07-11 11:53:15 +08:00
parent dea09094b7
commit 8c2cfcb37b
2 changed files with 0 additions and 11 deletions

View File

@@ -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{