|
@@ -576,9 +576,7 @@ public class ImportLogicServiceImpl implements ImportLogicService {
|
|
|
|
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
- public void saveMarkStudent(Long examId, List<BasicExamStudent> basicExamStudentList) {
|
|
|
|
- SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
|
- Long requestUserId = requestUser.getId();
|
|
|
|
|
|
+ public void saveMarkStudent(Long examId, List<BasicExamStudent> basicExamStudentList, Long createId) {
|
|
|
|
|
|
Map<String, List<BasicExamStudent>> stringMap = basicExamStudentList.stream().collect(Collectors.groupingBy(BasicExamStudent::getPaperNumber));
|
|
Map<String, List<BasicExamStudent>> stringMap = basicExamStudentList.stream().collect(Collectors.groupingBy(BasicExamStudent::getPaperNumber));
|
|
|
|
|
|
@@ -586,7 +584,7 @@ public class ImportLogicServiceImpl implements ImportLogicService {
|
|
BasicExamStudent basicExamStudent = entry.getValue().get(0);
|
|
BasicExamStudent basicExamStudent = entry.getValue().get(0);
|
|
MarkPaper markPaper = markPaperService.getByExamIdAndPaperNumber(examId, entry.getKey());
|
|
MarkPaper markPaper = markPaperService.getByExamIdAndPaperNumber(examId, entry.getKey());
|
|
if (markPaper == null) {
|
|
if (markPaper == null) {
|
|
- markPaper = new MarkPaper(examId, basicExamStudent.getCourseId(), entry.getKey(), String.valueOf(System.currentTimeMillis()), requestUserId, SystemConstant.DEFAULT_PAPER_TYPE_A);
|
|
|
|
|
|
+ markPaper = new MarkPaper(examId, basicExamStudent.getCourseId(), entry.getKey(), String.valueOf(System.currentTimeMillis()), createId, SystemConstant.DEFAULT_PAPER_TYPE_A);
|
|
markPaperService.save(markPaper);
|
|
markPaperService.save(markPaper);
|
|
}
|
|
}
|
|
Set<String> secretNumberSet = new HashSet<>();
|
|
Set<String> secretNumberSet = new HashSet<>();
|