| | |
| | | //计算返利比例 |
| | | BigDecimal rebateRate = potence.getRebatePercent(); |
| | | BigDecimal couponPrice = TaoBaoUtil.getAfterUseCouplePrice(goods); |
| | | BigDecimal fanliMoney = couponPrice.multiply(rebateRate).divide(new BigDecimal(100), 2, RoundingMode.FLOOR); |
| | | BigDecimal fanliMoney = TaoBaoUtil.getGoodsHongBaoMoney(goods,rebateRate,false); |
| | | moneyInfo.setFanliAmount(fanliMoney); |
| | | moneyInfo.setFirstOrderAmount(null); |
| | | list.add(moneyInfo); |
| | |
| | | private VipGradePotenceService vipGradePotenceService; |
| | | |
| | | |
| | | |
| | | @Override |
| | | public void insertSelective(VipCenter t){ |
| | | vipCenterMapper.insertSelective(t); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | @Override |
| | | public VipGradePotence getVipPotence(String uid) { |
| | | VipGradePotence potence = null; |
| | |
| | | @Override |
| | | public VIPEnum getVIPEnumByUid(String uid) { |
| | | VipGrade vipGrade = getVipGrade(uid); |
| | | if (vipGrade != null) { |
| | | return vipGrade.getIdentity(); |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | } |