From c044b6dd024b6884a4f39bc56e4873c95b13fe02 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 22 八月 2019 11:59:00 +0800 Subject: [PATCH] 免单更改 --- fanli/src/main/java/com/yeshi/fanli/util/taobao/DaTaoKeUtil.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/taobao/DaTaoKeUtil.java b/fanli/src/main/java/com/yeshi/fanli/util/taobao/DaTaoKeUtil.java index 42260ef..97a67ef 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/taobao/DaTaoKeUtil.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/taobao/DaTaoKeUtil.java @@ -560,4 +560,21 @@ return goods; } + public static DaTaoKeDetail filterDaTaoKe(TaoBaoGoodsBrief goods, DaTaoKeDetail detail) { + if (goods != null) { + BigDecimal price = TaoBaoUtil.getAfterUseCouplePrice(goods); + detail.setOrgPrice(goods.getZkPrice()); + detail.setPrice(price); + if (goods.getCouponStartFee() != null) + detail.setQuanCondition(goods.getCouponStartFee() + ""); + detail.setQuanId(goods.getCouponActivityId()); + detail.setQuanPrice(goods.getCouponAmount()); + return detail; + } + + return detail; + } + + + } -- Gitblit v1.8.0