|
|
@@ -83,7 +83,7 @@ public class VipFrontServiceImpl implements VipFrontService {
|
|
|
//处理vip抵扣金额
|
|
|
VipDeductDto vipDeductDto = commonHandleVipDeductMoney(userIdList, goodsIds, months);
|
|
|
vipUserPageResp.setRelationUserViews(vipDeductDto.getRelationUserViews());
|
|
|
- vipUserPageResp.setExtendsDays(vipDeductDto.getExtendDays());
|
|
|
+ vipUserPageResp.setExtendsDays(vipDeductDto.getExtendsDays());
|
|
|
if (months != 12) {
|
|
|
//取出最大可抵扣info
|
|
|
vipDeductDto = commonHandleVipDeductMoney(userIdList, goodsIds, 12);
|
|
|
@@ -195,8 +195,8 @@ public class VipFrontServiceImpl implements VipFrontService {
|
|
|
//每天单价
|
|
|
BigDecimal daySingle = vipMoney.divide(BigDecimal.valueOf(30), 0, RoundingMode.DOWN);
|
|
|
//超出部分可换取多少天 低于每天单价为0天
|
|
|
- BigDecimal extendDays = overMoney.divide(daySingle, 0, RoundingMode.UP);
|
|
|
- vipDeductDto.setExtendDays(extendDays.intValue());
|
|
|
+ BigDecimal extendsDays = overMoney.divide(daySingle, 0, RoundingMode.UP);
|
|
|
+ vipDeductDto.setExtendsDays(extendsDays.intValue());
|
|
|
vipDeductDto.setDeductMoney(vipMoney);
|
|
|
}
|
|
|
vipDeductDto.setDeductRelationIds(deductRelationIds);
|