This commit is contained in:
邹宗楠
2024-04-28 15:39:18 +08:00
parent 83538d8dce
commit 46fe089e36

View File

@@ -786,7 +786,7 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
//}
if v.ShopPrice == 0 {
v.ShopPrice = v.SalePrice * 70 / 100
v.ShopPrice = v.SalePrice * 60 / 100
}
} else {
// TODO 客户端当前逻辑认为SkuID为0为赠品
@@ -804,12 +804,12 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
if len(storeSkus) > 0 {
v.ShopPrice = int64(storeSkus[0].Price)
} else {
v.ShopPrice = v.SalePrice * 70 / 100
v.ShopPrice = v.SalePrice * 60 / 100
}
} else {
v.ShopPrice = int64(skuBindInfo.Price)
if v.ShopPrice == 0 {
v.ShopPrice = v.SalePrice * 70 / 100
v.ShopPrice = v.SalePrice * 60 / 100
}
}
v.SkuName = jxutils.ComposeSkuNameOriginal(skuBindInfo.Prefix, skuBindInfo.Name, skuBindInfo.Comment, skuBindInfo.Unit, skuBindInfo.SpecQuality, skuBindInfo.SpecUnit, 0)
@@ -2350,7 +2350,7 @@ func result2Orders(ctx *jxcontext.Context, result *jdshopapi.AllOrdersResult) (o
shopPriceSum += storeSkuList[0].Price * sku.Count
sku.ShopPrice = int64(storeSkuList[0].Price)
} else {
shopPriceSum += int(sku.SalePrice) * 70 / 100
shopPriceSum += int(sku.SalePrice) * 60 / 100
}
}
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {