|
@@ -356,10 +356,10 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
if(musicGroupPaymentCalender.getPayUserType() == STUDENT && musicGroup.getCourseViewType() == CourseViewTypeEnum.MEMBER_FEE){
|
|
|
if(musicGroupPaymentCalender.getPaymentType() == ADD_STUDENT){
|
|
|
musicGroupPaymentCalender.setCloudTeacherPaymentFlag(true);
|
|
|
- }else if(memberActualAmount.compareTo(BigDecimal.ZERO) > 0 && (courseActualAmount.compareTo(BigDecimal.ZERO) == 0 || activityActualAmount.compareTo(BigDecimal.ZERO) == 0)) {
|
|
|
- if(CollectionUtils.isNotEmpty(musicGroupPaymentBaseCalender.getMusicGroupPaymentCalenderCourseSettingsList()) || CollectionUtils.isNotEmpty(musicGroupPaymentBaseCalender.getCalenderActivityList())){
|
|
|
- musicGroupPaymentCalender.setCloudTeacherPaymentFlag(true);
|
|
|
- }
|
|
|
+ }else if(memberActualAmount.compareTo(BigDecimal.ZERO) > 0 &&
|
|
|
+ ((courseActualAmount.compareTo(BigDecimal.ZERO) == 0 && CollectionUtils.isNotEmpty(musicGroupPaymentBaseCalender.getMusicGroupPaymentCalenderCourseSettingsList()))
|
|
|
+ || (activityActualAmount.compareTo(BigDecimal.ZERO) == 0 && CollectionUtils.isNotEmpty(musicGroupPaymentBaseCalender.getCalenderActivityList())))) {
|
|
|
+ musicGroupPaymentCalender.setCloudTeacherPaymentFlag(true);
|
|
|
}
|
|
|
}
|
|
|
musicGroupPaymentCalenderDao.insert(musicGroupPaymentCalender);
|