|
|
@ -234,9 +234,12 @@ public class UserController {
|
|
|
|
if (!map.isEmpty()) {
|
|
|
|
if (!map.isEmpty()) {
|
|
|
|
for (Map.Entry<String, StuClass> stringStuClassEntry : map.entrySet()) {
|
|
|
|
for (Map.Entry<String, StuClass> stringStuClassEntry : map.entrySet()) {
|
|
|
|
StuClass stuClass = stringStuClassEntry.getValue();
|
|
|
|
StuClass stuClass = stringStuClassEntry.getValue();
|
|
|
|
|
|
|
|
StuClass stuClass1 = classMapper.selectByPrimaryKey(stuClass.getClassId());
|
|
|
|
|
|
|
|
if (stuClass1 == null) {
|
|
|
|
classMapper.insert(stuClass);
|
|
|
|
classMapper.insert(stuClass);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (users.isEmpty()) {
|
|
|
|
if (users.isEmpty()) {
|
|
|
|
return "账号已全部存在";
|
|
|
|
return "账号已全部存在";
|
|
|
|
}
|
|
|
|
}
|
|
|
|