|
@@ -58,7 +58,7 @@ public class StudentImportAsyncServiceImpl implements StudentImportAsyncService
|
|
public void asyncImportStudent(StudentImportTaskEntity task, Long orgId, List<DataMap> lineList) {
|
|
public void asyncImportStudent(StudentImportTaskEntity task, Long orgId, List<DataMap> lineList) {
|
|
Map<String, CategoryEntity> teachingCache = getTeachingCache();
|
|
Map<String, CategoryEntity> teachingCache = getTeachingCache();
|
|
List<StudentImportInfo> studentList = new ArrayList<>();
|
|
List<StudentImportInfo> studentList = new ArrayList<>();
|
|
- List<Map<String, Object>> failRecords = new ArrayList<Map<String, Object>>();
|
|
|
|
|
|
+ List<Map<String, Object>> failRecords = new ArrayList<>();
|
|
for (int i = 0; i < lineList.size(); i++) {
|
|
for (int i = 0; i < lineList.size(); i++) {
|
|
DataMap line = lineList.get(i);
|
|
DataMap line = lineList.get(i);
|
|
StringBuilder msg = new StringBuilder();
|
|
StringBuilder msg = new StringBuilder();
|
|
@@ -136,6 +136,11 @@ public class StudentImportAsyncServiceImpl implements StudentImportAsyncService
|
|
} else {
|
|
} else {
|
|
studentList.add(student);
|
|
studentList.add(student);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //只要有错误,就跳出循环
|
|
|
|
+ if (CollectionUtils.isNotEmpty(failRecords)) {
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(failRecords)) {
|
|
if (CollectionUtils.isNotEmpty(failRecords)) {
|