|
@@ -1042,6 +1042,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if (musicGroup == null) {
|
|
|
throw new BizException("乐团不存在");
|
|
|
}
|
|
|
+ if(classGroup4MixDto.getCourseTimes().compareTo(0) <= 0){
|
|
|
+ throw new BizException("排课次数必须大于0");
|
|
|
+ }
|
|
|
Date entryDate = DateUtil.stringToDate(sysConfigDao.findByParamName(SysConfigService.TEACHER_ENTRY_DATE).getParanValue(),"yyyy-MM-dd");
|
|
|
Integer schoolId = musicGroup.getSchoolId();
|
|
|
|
|
@@ -1293,6 +1296,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if (classGroup == null) {
|
|
|
throw new BizException("班级不存在");
|
|
|
}
|
|
|
+ if(classGroup4MixDto.getCourseTimes().compareTo(0) <= 0){
|
|
|
+ throw new BizException("排课次数必须大于0");
|
|
|
+ }
|
|
|
Integer courseTimes = classGroup4MixDto.getCourseTimes();
|
|
|
|
|
|
Date entryDate = DateUtil.stringToDate(sysConfigDao.findByParamName(SysConfigService.TEACHER_ENTRY_DATE).getParanValue(),"yyyy-MM-dd");
|
|
@@ -1532,6 +1538,9 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
|
|
|
if (musicGroup == null) {
|
|
|
throw new BizException("乐团不存在");
|
|
|
}
|
|
|
+ if(classGroup4MixDto.getCourseTimes().compareTo(0) <= 0){
|
|
|
+ throw new BizException("排课次数必须大于0");
|
|
|
+ }
|
|
|
Integer schoolId = musicGroup.getSchoolId();
|
|
|
|
|
|
Date entryDate = DateUtil.stringToDate(sysConfigDao.findByParamName(SysConfigService.TEACHER_ENTRY_DATE).getParanValue(),"yyyy-MM-dd");
|