| | |
| | | cg.setCouponInfo(String.format("满%s元减%s元", goods.getCouponInfo().getBounsLimit(),
|
| | | goods.getCouponInfo().getCouponValue()));
|
| | | cg.setCouponAmount(new BigDecimal(goods.getCouponInfo().getCouponValue()));
|
| | | cg.setCouponLeftCount(Integer.parseInt(goods.getCouponInfo().getCouponCount()));
|
| | | cg.setCouponTotalCount(Integer.parseInt(goods.getCouponInfo().getCouponCount()));
|
| | | |
| | | if (goods.getCouponInfo().getCouponCount() == null) {
|
| | | cg.setCouponLeftCount(500000);
|
| | | cg.setCouponTotalCount(500000);
|
| | | } else {
|
| | | cg.setCouponLeftCount(Integer.parseInt(goods.getCouponInfo().getCouponCount()));
|
| | | cg.setCouponTotalCount(Integer.parseInt(goods.getCouponInfo().getCouponCount()));
|
| | | }
|
| | | |
| | | cg.setCouponStartPrice(new BigDecimal(goods.getCouponInfo().getBounsLimit()));
|
| | | } else {
|
| | | cg.setCouponLeftCount(0);
|
| | |
| | | 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());
|
| | | // 保留字段
|