|
@@ -145,10 +145,17 @@ public class ExamStudentImportForkJoin extends RecursiveTask<Set<String>> {
|
|
|
if (teStudentExists) {
|
|
|
if (!teStudentInsertMap.containsKey(teStudent.toString())) {
|
|
|
teStudentInsertMap.put(teStudent.toString(), teStudent);
|
|
|
+ teExamStudent.setStudentId(teStudent.getId());
|
|
|
+ } else {
|
|
|
+ TEStudent student = teStudentInsertMap.get(teStudent.toString());
|
|
|
+ teExamStudent.setStudentId(student.getId());
|
|
|
}
|
|
|
} else {
|
|
|
if (!teStudentUpdateMap.containsKey(teStudent.toString())) {
|
|
|
teStudentUpdateMap.put(teStudent.toString(), teStudent);
|
|
|
+ } else {
|
|
|
+ TEStudent student = teStudentUpdateMap.get(teStudent.toString());
|
|
|
+ teExamStudent.setStudentId(student.getId());
|
|
|
}
|
|
|
}
|
|
|
|