|
@@ -164,7 +164,9 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
// 所有缴费项目已完成排课才能创建下一个缴费项目
|
|
|
String orignBatchNo = musicGroupPaymentStudentCourseDetailDao.getUnUseBatchNoWithStudentAndCourseTypeAndCourseMinutes(musicGroupId, null, null);
|
|
|
if (StringUtils.isNoneBlank(orignBatchNo)) {
|
|
|
- throw new BizException("当前乐团存在未排课的缴费项目,请先完成排课再操作");
|
|
|
+ if(StringUtils.isEmpty(musicGroupPaymentCalenderDto.getBatchNo()) || !musicGroupPaymentCalenderDto.getBatchNo().equals(orignBatchNo)){
|
|
|
+ throw new BizException("当前乐团存在未排课的缴费项目,请先完成排课再操作");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 不是进行中,只能创建一次缴费
|