|
@@ -619,6 +619,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
|
|
|
//会员原价
|
|
|
BigDecimal memberPaymentAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal originalMemberPaymentAmount = BigDecimal.ZERO;
|
|
|
if (payUserType == SCHOOL) {
|
|
|
status = AUDITING;
|
|
|
} else {
|
|
@@ -708,12 +709,15 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
switch (musicGroupPaymentCalenderDto.getMemberValidDate()){
|
|
|
case 1 :
|
|
|
memberPaymentAmount = memberFee.getCurrentMonthFee().setScale(0, BigDecimal.ROUND_HALF_UP);
|
|
|
+ originalMemberPaymentAmount = memberFee.getOriginalMonthFee().setScale(0, BigDecimal.ROUND_HALF_UP);
|
|
|
break;
|
|
|
case 6 :
|
|
|
memberPaymentAmount = memberFee.getCurrentHalfYearFee().setScale(0, BigDecimal.ROUND_HALF_UP);
|
|
|
+ originalMemberPaymentAmount = memberFee.getOriginalHalfYearFee().setScale(0, BigDecimal.ROUND_HALF_UP);
|
|
|
break;
|
|
|
case 12 :
|
|
|
memberPaymentAmount = memberFee.getCurrentYearFee().setScale(0, BigDecimal.ROUND_HALF_UP);
|
|
|
+ originalMemberPaymentAmount = memberFee.getOriginalYearFee().setScale(0, BigDecimal.ROUND_HALF_UP);
|
|
|
break;
|
|
|
default:
|
|
|
throw new BizException("请选择正确的会员有效期");
|
|
@@ -742,7 +746,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
MusicGroupPaymentCalender musicGroupPaymentCalender = new MusicGroupPaymentCalender();
|
|
|
musicGroupPaymentCalender.setAttribute1(musicGroupPaymentCalenderDto.getAttribute1());
|
|
|
musicGroupPaymentCalender.setAttribute2(musicGroupPaymentCalenderDto.getAttribute2());
|
|
|
- musicGroupPaymentCalender.setOriginalMemberPaymentAmount(memberPaymentAmount);
|
|
|
+ musicGroupPaymentCalender.setOriginalMemberPaymentAmount(originalMemberPaymentAmount);
|
|
|
musicGroupPaymentCalender.setDeadlinePaymentDate(musicGroupPaymentDateRange.getDeadlinePaymentDate());
|
|
|
musicGroupPaymentCalender.setIsGiveMusicNetwork(musicGroupPaymentCalenderDto.getIsGiveMusicNetwork());
|
|
|
musicGroupPaymentCalender.setMemo(musicGroupPaymentCalenderDto.getMemo());
|