|
@@ -119,20 +119,20 @@ public class SpecialtyServiceImpl implements SpecialtyService {
|
|
|
|
|
|
String name = trimAndNullIfBlank(line[0]);
|
|
String name = trimAndNullIfBlank(line[0]);
|
|
if (StringUtils.isBlank(name)) {
|
|
if (StringUtils.isBlank(name)) {
|
|
- msg.append(" 课程名称不能为空");
|
|
|
|
|
|
+ msg.append(" 专业名称不能为空");
|
|
hasError = true;
|
|
hasError = true;
|
|
} else if (name.length() > 30) {
|
|
} else if (name.length() > 30) {
|
|
- msg.append(" 课程名称不能超过30个字符");
|
|
|
|
|
|
+ msg.append(" 专业名称不能超过30个字符");
|
|
hasError = true;
|
|
hasError = true;
|
|
}
|
|
}
|
|
specialty.setName(name);
|
|
specialty.setName(name);
|
|
|
|
|
|
String code = trimAndNullIfBlank(line[1]);
|
|
String code = trimAndNullIfBlank(line[1]);
|
|
if (StringUtils.isBlank(code)) {
|
|
if (StringUtils.isBlank(code)) {
|
|
- msg.append(" 课程代码不能为空");
|
|
|
|
|
|
+ msg.append(" 专业代码不能为空");
|
|
hasError = true;
|
|
hasError = true;
|
|
} else if (code.length() > 30) {
|
|
} else if (code.length() > 30) {
|
|
- msg.append(" 课程代码不能超过30个字符");
|
|
|
|
|
|
+ msg.append(" 专业代码不能超过30个字符");
|
|
hasError = true;
|
|
hasError = true;
|
|
}
|
|
}
|
|
|
|
|