|
@@ -58,7 +58,9 @@ public class CourseCloudServiceProvider implements CourseCloudService {
|
|
|
info.setEnable(courseReq.getEnable());
|
|
|
info.setId(courseReq.getCourseId());
|
|
|
info.setName(courseReq.getCourseName());
|
|
|
- info.setLevel(CourseLevel.getCourseLevel(courseReq.getCourseLevel()));
|
|
|
+ if (null != courseReq.getCourseLevel()) {
|
|
|
+ info.setLevel(CourseLevel.getCourseLevel(courseReq.getCourseLevel()));
|
|
|
+ }
|
|
|
|
|
|
CourseEntity saved = courseService.saveCourse(info);
|
|
|
|