|
@@ -4,6 +4,7 @@ import static com.ym.mec.biz.dal.entity.MusicGroupStudentFee.PaymentStatus.NON_P
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.HashSet;
|
|
@@ -376,6 +377,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);
|