|
@@ -278,6 +278,13 @@ public class MusicGroupPaymentCalenderDetailServiceImpl extends BaseServiceImpl<
|
|
|
throw new BizException("当前缴费状态不能添加学生");
|
|
|
}
|
|
|
|
|
|
+ //判断学生是否已存在
|
|
|
+ Set<Integer> userList = musicGroupPaymentCalenderDetailDao.queryStudentIds(musicGroupPaymentCalenderId);
|
|
|
+
|
|
|
+ if(Collections.disjoint(userList, userIdList) == false){
|
|
|
+ throw new BizException("操作失败:包含已存在的学员");
|
|
|
+ }
|
|
|
+
|
|
|
List<MusicGroupPaymentCalenderCourseSettings> courseSettingsList = musicGroupPaymentCalenderCourseSettingsDao.getWithPaymentCalender(musicGroupPaymentCalenderId);
|
|
|
|
|
|
BigDecimal totalPrice = new BigDecimal(0);
|