|
@@ -89,9 +89,8 @@ public class CourseScheduleStudentPaymentServiceImpl extends BaseServiceImpl<Lon
|
|
|
case DISCOUNT:
|
|
|
courseScheduleStudentPayment.setExpectPrice(
|
|
|
vipGroupApplyBaseInfoDto.getOnlineClassesUnitPrice().multiply(
|
|
|
- new BigDecimal(vipGroupActivity.getAttribute1())
|
|
|
- .divide(new BigDecimal(100), CommonConstants.DECIMAL_PLACE, BigDecimal.ROUND_DOWN).setScale(CommonConstants.DECIMAL_FINAL_PLACE,BigDecimal.ROUND_HALF_UP)
|
|
|
- )
|
|
|
+ new BigDecimal(vipGroupActivity.getAttribute1()))
|
|
|
+ .divide(new BigDecimal(100), CommonConstants.DECIMAL_FINAL_PLACE, BigDecimal.ROUND_DOWN)
|
|
|
);
|
|
|
break;
|
|
|
case GIVE_CLASS:
|
|
@@ -114,9 +113,8 @@ public class CourseScheduleStudentPaymentServiceImpl extends BaseServiceImpl<Lon
|
|
|
case DISCOUNT:
|
|
|
courseScheduleStudentPayment.setExpectPrice(
|
|
|
vipGroupApplyBaseInfoDto.getOfflineClassesUnitPrice().multiply(
|
|
|
- new BigDecimal(vipGroupActivity.getAttribute1())
|
|
|
- .divide(new BigDecimal(100), CommonConstants.DECIMAL_PLACE, BigDecimal.ROUND_DOWN).setScale(CommonConstants.DECIMAL_FINAL_PLACE,BigDecimal.ROUND_HALF_UP)
|
|
|
- )
|
|
|
+ new BigDecimal(vipGroupActivity.getAttribute1()))
|
|
|
+ .divide(new BigDecimal(100), CommonConstants.DECIMAL_FINAL_PLACE, BigDecimal.ROUND_DOWN)
|
|
|
);
|
|
|
break;
|
|
|
case GIVE_CLASS:
|