|
@@ -396,9 +396,6 @@ public class ActivityUserMapperServiceImpl extends BaseServiceImpl<Integer, Acti
|
|
|
} catch (Exception e) {
|
|
|
throw new BizException("教学模式错误");
|
|
|
}
|
|
|
- if (StringUtils.isBlank(applyBaseInfo.getSubjectIdList())) {
|
|
|
- throw new BizException("请选择声部");
|
|
|
- }
|
|
|
if(Objects.isNull(applyBaseInfo.getVipGroupCategoryId())){
|
|
|
throw new BizException("请选择课程类型");
|
|
|
}
|
|
@@ -458,6 +455,9 @@ public class ActivityUserMapperServiceImpl extends BaseServiceImpl<Integer, Acti
|
|
|
if(vipGroupCategory.getMusicTheory()){
|
|
|
applyBaseInfo.setSubjectIdList("31");
|
|
|
}
|
|
|
+ if (StringUtils.isBlank(applyBaseInfo.getSubjectIdList())) {
|
|
|
+ throw new BizException("请选择声部");
|
|
|
+ }
|
|
|
List<Integer> studentIdList = Arrays.stream(studentIds.split(",")).map(id -> Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
if (!vipGroupCategory.getMusicTheory()) {
|
|
|
if (studentIdList.size() != vipGroupCategory.getStudentNum()) {
|