|
@@ -136,6 +136,10 @@ public class StudentImportAnalysis extends DataAnalysis<StudentImportAnalysis> {
|
|
|
if (StringUtils.isEmpty(item.getSubjectName())) {
|
|
|
ret.append("声部不能为空;");
|
|
|
}else {
|
|
|
+ String[] split = item.getSubjectName().replaceAll(" ", "").replaceAll(",", ",").split(",");
|
|
|
+ if (split.length > 1) {
|
|
|
+ ret.append("声部最多选择1个;");
|
|
|
+ }
|
|
|
if (!subjectMap.containsKey(item.getSubjectName())) {
|
|
|
ret.append("声部无效:").append(item.getSubjectName());
|
|
|
}
|