From ae2294be876ac4595d7b31b36c0057726d12354f Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 14 五月 2021 16:11:16 +0800 Subject: [PATCH] 淘宝券后价计算方法名称修改 --- fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java index d20a2b6..ae201d0 100644 --- a/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java +++ b/fanli/src/main/java/com/yeshi/fanli/controller/client/v2/ShareControllerV2.java @@ -251,7 +251,7 @@ commentText = commentText.replace("棰嗗埜鎶㈣喘", "鎶㈣喘"); commentText = commentText.replace("銆愬埜鍚庝环銆慬鍒稿悗浠穄鍏�", ""); } else { - commentText = commentText.replace("[鍒稿悗浠穄", TaoBaoUtil.getAfterUseCouplePrice(goods) + ""); + commentText = commentText.replace("[鍒稿悗浠穄", TaoBaoUtil.getCouponPrice(goods) + ""); } commentText = commentText.replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n").replace("\r\n\r\n", "\r\n"); @@ -418,7 +418,7 @@ .replace("{鍟嗗搧鍘熶环}", MoneyBigDecimalUtil.getWithNoZera(goods.getZkPrice()) + "") .replace("{浼樻儬鍒搁潰棰潁", MoneyBigDecimalUtil.getWithNoZera(goods.getCouponAmount()).toString()) .replace("{娣樼ぜ閲戦潰棰潁", MoneyBigDecimalUtil.getWithNoZera(spreadMoney).toString()) - .replace("{浼樻儬鍒镐环}", TaoBaoUtil.getAfterUseCouplePrice(goods) + ""); + .replace("{浼樻儬鍒镐环}", TaoBaoUtil.getCouponPrice(goods) + ""); } shareText = shareText.replace("{搴楅摵绫诲瀷}", shopType) @@ -649,7 +649,7 @@ commentText = commentText.replace("銆愬埜鍚庝环銆慬鍒稿悗浠穄鍏�", ""); } else { commentText = commentText.replace("[鍒稿悗浠穄", - TaoBaoUtil.getAfterUseCouplePrice(taoBaoLink.getGoods()) + ""); + TaoBaoUtil.getCouponPrice(taoBaoLink.getGoods()) + ""); } if (StringUtil.isNullOrEmpty(taoBaoLink.getGoods().getCouponInfo())) { @@ -829,7 +829,7 @@ recommendText = recommendText.replace("[鍒搁潰棰漖", BigDecimalUtil.getWithNoZera(couponInfo.getDiscount()).toString()); commentText = commentText.replace("[鍒稿悗浠穄", - BigDecimalUtil.getWithNoZera(JDUtil.getQuanPrice(jdGoods)).toString()); + BigDecimalUtil.getWithNoZera(JDUtil.getCouponPrice(jdGoods)).toString()); } commentText = commentText.replace("[閾炬帴]", jumpLink); } else { @@ -1017,7 +1017,7 @@ recommendText = recommendText.replace("浼樻儬鍒�:[鍒搁潰棰漖鍏�", ""); } else { commentText = commentText.replace("[鍒稿悗浠穄", - BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getQuanPrice(goods)).toString()); + BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getCouponPrice(goods)).toString()); BigDecimal hundred = new BigDecimal(100); BigDecimal amount = MoneyBigDecimalUtil.div(new BigDecimal(goods.getCouponDiscount()), hundred); -- Gitblit v1.8.0