fix:批发排序

master
howell 3 years ago
parent ee31ebd294
commit 195952e039

@ -208,6 +208,9 @@ func QueryGoodsListByDiscountPrice(c *gin.Context) {
var skuList []goods.Sku
order := fmt.Sprintf("discount_price %s", p.Order)
if p.IsSale {
order = fmt.Sprintf("sale_purchase_price %s", p.Order)
}
dbc.DB.Select("SUM(inventory) AS inventory, "+
"SUM(sales_volume) AS sales_volume, "+
"SUM(sales_volume_inc) AS sales_volume_inc, "+

Loading…
Cancel
Save