| | |
| | | import com.yeshi.fanli.util.MoneyBigDecimalUtil;
|
| | |
|
| | | /**
|
| | | * 淘礼金
|
| | | * 淘礼金
|
| | | *
|
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | public class TaoLiJinUtil {
|
| | | |
| | |
|
| | | /**
|
| | | * 根据商品计算推广红包
|
| | | * 根据商品计算推广红包
|
| | | * |
| | | * @param warningRate
|
| | | * @param goodsBrief
|
| | | * @return
|
| | | */
|
| | | public static BigDecimal getSpreadMoney(String warningRate, TaoBaoGoodsBrief goodsBrief) {
|
| | | BigDecimal spreadMoney = TaoBaoUtil.getGoodsHongBaoMoney(goodsBrief,new BigDecimal(100));
|
| | | return MoneyBigDecimalUtil.mul(new BigDecimal(Integer.parseInt(warningRate) * 0.01), spreadMoney);
|
| | | BigDecimal spreadMoney = TaoBaoUtil.getGoodsHongBaoMoney(goodsBrief, new BigDecimal(100));
|
| | | return MoneyBigDecimalUtil.mul(new BigDecimal(warningRate).multiply(new BigDecimal("0.01")), spreadMoney);
|
| | | }
|
| | | |
| | |
|
| | | }
|