更新1009
This commit is contained in:
parent
6e3f274688
commit
3655bd7fb2
@ -141,6 +141,10 @@ public class DlDriveSchoolCourseServiceImpl extends ServiceImpl<DlDriveSchoolCou
|
||||
public void saveDriveSchoolCourse(DlDriveSchoolCourseNewVO courseVO) {
|
||||
boolean isNew = (courseVO.getId() == null);
|
||||
|
||||
if (courseVO.getCoachList().isEmpty()) {
|
||||
throw new RuntimeException("新增课程时必须至少包含一个教练");
|
||||
}
|
||||
|
||||
DlDriveSchoolCourse course = BeanUtils.toBean(courseVO, DlDriveSchoolCourse.class);
|
||||
|
||||
if (isNew) {
|
||||
|
Loading…
Reference in New Issue
Block a user