|
|
@ -203,7 +203,7 @@ func QueryGoodsListByDiscountPrice(c *gin.Context) {
|
|
|
|
"MIN(discount_price) AS discount_price, "+
|
|
|
|
"MIN(discount_price) AS discount_price, "+
|
|
|
|
"MIN(purchase_price) AS purchase_price, "+
|
|
|
|
"MIN(purchase_price) AS purchase_price, "+
|
|
|
|
"MIN(commission) AS commission, "+
|
|
|
|
"MIN(commission) AS commission, "+
|
|
|
|
"MIN(sale_purchase_price) as sale_purchase_price "+
|
|
|
|
"MIN(sale_purchase_price) as sale_purchase_price, "+
|
|
|
|
"goods_id").Order(order).Group("goods_id").
|
|
|
|
"goods_id").Order(order).Group("goods_id").
|
|
|
|
Find(&skuList, "goods_id IN (?)", goodsIdList)
|
|
|
|
Find(&skuList, "goods_id IN (?)", goodsIdList)
|
|
|
|
|
|
|
|
|
|
|
@ -234,7 +234,7 @@ func GetGoodsRespByInfoList(goodsList []goods.Information, userID uint, isSale b
|
|
|
|
"MIN(discount_price) AS discount_price, "+
|
|
|
|
"MIN(discount_price) AS discount_price, "+
|
|
|
|
"MIN(commission) AS commission,"+
|
|
|
|
"MIN(commission) AS commission,"+
|
|
|
|
"MIN(coupon) AS coupon,"+
|
|
|
|
"MIN(coupon) AS coupon,"+
|
|
|
|
"MIN(sale_purchase_price) as sale_purchase_price").
|
|
|
|
"MIN(sale_purchase_price) AS sale_purchase_price").
|
|
|
|
Group("goods_id").
|
|
|
|
Group("goods_id").
|
|
|
|
Where("goods_id in (?)", ids).
|
|
|
|
Where("goods_id in (?)", ids).
|
|
|
|
Find(&sku)
|
|
|
|
Find(&sku)
|
|
|
|