|
|
|
@ -4,6 +4,7 @@ import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"recook/internal/back"
|
|
|
|
|
"recook/internal/dbc"
|
|
|
|
|
"recook/internal/define"
|
|
|
|
|
"recook/internal/model/goods"
|
|
|
|
|
"recook/internal/v2/lib/es"
|
|
|
|
|
ac2 "recook/internal/v2/model/jyy"
|
|
|
|
@ -285,6 +286,10 @@ func GetGoodsRespByInfoList(goodsList []goods.Information, userID uint, isSale b
|
|
|
|
|
commission3 := base.Mul(rate3).Round(2)
|
|
|
|
|
commission = commission1.Add(commission2).Add(commission3)
|
|
|
|
|
|
|
|
|
|
if u.Level == 10 {
|
|
|
|
|
commission = ss.DiscountPrice.Sub(ss.GetSalePrice(u.Level)).Mul(decimal.NewFromFloat(define.Coefficient))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
recookGoodsInfoModel := &goods2.RecookGoodsInfoModel{}
|
|
|
|
|
space := " "
|
|
|
|
|
list = append(list, QueryCategoryGoodsListResp{
|
|
|
|
@ -373,6 +378,10 @@ func GetGoodsRespBySkuList(skuList []goods.Sku, uid uint) []QueryCategoryGoodsLi
|
|
|
|
|
fmt.Println(commission1, commission2, commission3, base, v.PurchasePrice, v.DiscountPrice)
|
|
|
|
|
commission = commission1.Add(commission2).Add(commission3)
|
|
|
|
|
|
|
|
|
|
if u.Level == 10 {
|
|
|
|
|
commission = v.DiscountPrice.Sub(v.GetSalePrice(u.Level)).Mul(decimal.NewFromFloat(define.Coefficient))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
recookGoodsInfoModel := &goods2.RecookGoodsInfoModel{}
|
|
|
|
|
list = append(list, QueryCategoryGoodsListResp{
|
|
|
|
|
ID: v.GoodsID,
|
|
|
|
|