From 4d66b80a56cca390a0d06cc5bc5a9d8c8f790ff8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 01 六月 2020 19:04:27 +0800 Subject: [PATCH] 团队分红规则修改 --- fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java index 247959c..ffe67a4 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/CommonGoodsFactory.java @@ -269,7 +269,9 @@ categoryInfo.setCid1(goods.getCategoryId()); categoryInfo.setCid1Name(goods.getCategoryName()); cg.setCategoryInfo(JSONObject.toJSON(categoryInfo).toString()); - + //瀛樻斁鎶樻墸浠� + cg.setCouponStartPrice(new BigDecimal(goods.getVipPrice())); + cg.setCouponInfo(MoneyBigDecimalUtil.getWithNoZera(MoneyBigDecimalUtil.mul(new BigDecimal(goods.getDiscount()), new BigDecimal(10))) + "鎶�"); return cg; } @@ -303,7 +305,7 @@ cg.setRate(new BigDecimal(goods.getCommodityInfo().getRate())); cg.setSellerId(Long.parseLong(goods.getCommodityInfo().getSupplierCode())); cg.setSellerName(goods.getCommodityInfo().getSupplierName()); - cg.setShopType(CommonGoods.SHOP_TYPE_PDD); + cg.setShopType(CommonGoods.SHOP_TYPE_SUNING); cg.setState(CommonGoods.STATE_NORMAL); cg.setTitle(goods.getCommodityInfo().getCommodityName()); // 淇濈暀瀛楁 -- Gitblit v1.8.0