|
@@ -18,6 +18,7 @@ import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PayUserType.SCHOOL;
|
|
|
+import static com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender.PayUserType.STUDENT;
|
|
|
|
|
|
@Service
|
|
|
public class MusicGroupPaymentStudentCourseDetailServiceImpl extends BaseServiceImpl<Long, MusicGroupPaymentStudentCourseDetail> implements MusicGroupPaymentStudentCourseDetailService {
|
|
@@ -172,6 +173,9 @@ public class MusicGroupPaymentStudentCourseDetailServiceImpl extends BaseService
|
|
|
musicGroupPaymentStudentCourseDetails.add(musicGroupPaymentStudentCourseDetail);
|
|
|
}
|
|
|
if (musicGroupPaymentStudentCourseDetails.size() > 0) {
|
|
|
+ if(musicGroupPaymentCalender.getPayUserType() == STUDENT && musicalFee.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ distributeTotalAmount(musicGroupPaymentStudentCourseDetails, musicalFee);
|
|
|
+ }
|
|
|
musicGroupPaymentStudentCourseDetailDao.batchInsert(musicGroupPaymentStudentCourseDetails);
|
|
|
}
|
|
|
}
|