|
@@ -280,10 +280,10 @@ public class CourseController extends ControllerSupport {
|
|
|
throw new StatusException("B-620001", "课程编码不能为空");
|
|
|
}
|
|
|
if (StringUtils.isBlank(name)) {
|
|
|
- throw new StatusException("B-620001", "课程名称不能为空");
|
|
|
+ throw new StatusException("B-620002", "课程名称不能为空");
|
|
|
}
|
|
|
if (name.length() > 20) {
|
|
|
- throw new StatusException("B-620001", "课程名称不能超过20个字符");
|
|
|
+ throw new StatusException("B-620003", "课程名称不能超过20个字符");
|
|
|
}
|
|
|
CourseEntity course = courseRepo.findByRootOrgIdAndCode(rootOrgId, code);
|
|
|
if (null != course) {
|
|
@@ -323,7 +323,10 @@ public class CourseController extends ControllerSupport {
|
|
|
throw new StatusException("B-620001", "课程编码不能为空");
|
|
|
}
|
|
|
if (StringUtils.isBlank(name)) {
|
|
|
- throw new StatusException("B-620001", "课程名称不能为空");
|
|
|
+ throw new StatusException("B-620002", "课程名称不能为空");
|
|
|
+ }
|
|
|
+ if (name.length() > 20) {
|
|
|
+ throw new StatusException("B-620003", "课程名称不能超过20个字符");
|
|
|
}
|
|
|
|
|
|
CourseInfo info = new CourseInfo();
|