|
@@ -25,6 +25,7 @@ import java.math.BigDecimal;
|
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
+import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.FeeType.ONLINE;
|
|
|
import static com.ym.mec.biz.dal.entity.MusicGroupStudentFee.PaymentStatus.NON_PAYMENT;
|
|
|
import static com.ym.mec.biz.dal.entity.MusicGroupStudentFee.PaymentStatus.PAID_COMPLETED;
|
|
|
|
|
@@ -71,6 +72,10 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
e.setExpectAmount(expectAmount);
|
|
|
});
|
|
|
//如果是设置为0元
|
|
|
+ MusicGroupPaymentCalender calender = musicGroupPaymentCalenderDao.get(calenderDetails.get(0).getMusicGroupPaymentCalenderId());
|
|
|
+ if(calender.getType() == ONLINE){
|
|
|
+ musicGroupStudentFeeDao.remainNetworkClassTimesAdd(ids);
|
|
|
+ }
|
|
|
if(compare == 1){
|
|
|
musicGroupStudentFeeDao.setPaidCompleted(calenderDetails);
|
|
|
}
|
|
@@ -168,6 +173,9 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
studentFee.setPaymentStatus(PAID_COMPLETED);
|
|
|
studentFee.setUpdateTime(date);
|
|
|
musicGroupPaymentCalenderDetail.setPaymentStatus(PAID_COMPLETED);
|
|
|
+ if(calender.getType() == ONLINE){
|
|
|
+ musicGroupStudentFeeDao.remainNetworkClassTimesAdd(userLastCalenderDetail.toString());
|
|
|
+ }
|
|
|
} else {
|
|
|
musicGroupPaymentCalenderDetail.setPaymentStatus(MusicGroupStudentFee.PaymentStatus.NON_PAYMENT);
|
|
|
}
|