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