|
@@ -181,9 +181,12 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
if(musicGroupPaymentDateRangeList.size() > 1){
|
|
|
throw new BizException("[临时加课]不支持多周期缴费");
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ if ((paymentType == PaymentType.ADD_STUDENT)) {
|
|
|
Integer userId = Integer.parseInt(musicGroupPaymentCalenderDto.getStudentIds());
|
|
|
- List<Long> idList = musicGroupPaymentCalenderDao.findStudentNoPaymentCalender(userId, musicGroupId);
|
|
|
- if(idList != null && idList.size() > 0){
|
|
|
+ List<MusicGroupPaymentCalenderDetail> musicGroupPaymentCalenderDetailList = musicGroupPaymentCalenderDetailDao.queryNotPaymentStudentByUserIdAndMusicGroupId(userId, musicGroupId);
|
|
|
+ if(musicGroupPaymentCalenderDetailList != null && musicGroupPaymentCalenderDetailList.size() > 0){
|
|
|
throw new BizException("创建缴费失败:已存在缴费项目");
|
|
|
}
|
|
|
}
|