fix:销量排序

master
howell 3 years ago
parent 195952e039
commit e14cf1a9c0

@ -155,7 +155,7 @@ func QueryGoodsListBySalesVolume(c *gin.Context) {
}
var goodsList []goods.Information
order := fmt.Sprintf("sales_volume %s, id desc", p.Order)
order := fmt.Sprintf("sales_volume + sales_volume_inc %s, id desc", p.Order)
q3 := mysql2.Db.Table("recook_goods_info as a").Order(order).Where(goods.Information{
BrandID: p.BrandID,
SecondCategoryID: p.SecondCategoryID,

Loading…
Cancel
Save