Merge remote-tracking branch 'origin/rescue' into rescue
This commit is contained in:
commit
8d790d497d
@ -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