|
@@ -1235,6 +1235,20 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
Page<ArchiveStudentVo> page = new Page<>(query.getPageNumber(), query.getPageSize());
|
|
Page<ArchiveStudentVo> page = new Page<>(query.getPageNumber(), query.getPageSize());
|
|
IPage<ArchiveStudentVo> ret = baseMapper.studentList(page, sysUser.getSchoolId(), query, dpr);
|
|
IPage<ArchiveStudentVo> ret = baseMapper.studentList(page, sysUser.getSchoolId(), query, dpr);
|
|
for (ArchiveStudentVo record : ret.getRecords()) {
|
|
for (ArchiveStudentVo record : ret.getRecords()) {
|
|
|
|
+ // 扫描状态
|
|
|
|
+ if (BasicExamStudentStatusEnum.M.equals(record.getStudentStatus()) || record.getAbsent() || record.getOmrAbsent() || record.getManualAbsent()) {
|
|
|
|
+ record.setStudentStatusDisplay("缺考");
|
|
|
|
+ } else if (ScanStatus.UNEXIST.equals(record.getScanStatus())) {
|
|
|
|
+ record.setStudentStatusDisplay(ScanStatus.UNEXIST.getName());
|
|
|
|
+ } else {
|
|
|
|
+ record.setStudentStatusDisplay("正常");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 违纪状态
|
|
|
|
+ if (BasicExamStudentStatusEnum.B.equals(record.getStudentStatus()) || record.getBreach() || record.getOmrBreach() || record.getManualBreach()) {
|
|
|
|
+ record.setBreachDisplay("违纪");
|
|
|
|
+ }
|
|
|
|
+
|
|
List<String> list = new ArrayList<>();
|
|
List<String> list = new ArrayList<>();
|
|
List<FilePathVo> vos = JSON.parseArray(StringUtils.trimToNull(record.getSheetPath()), FilePathVo.class);
|
|
List<FilePathVo> vos = JSON.parseArray(StringUtils.trimToNull(record.getSheetPath()), FilePathVo.class);
|
|
if (CollectionUtils.isEmpty(vos)) {
|
|
if (CollectionUtils.isEmpty(vos)) {
|
|
@@ -1254,7 +1268,7 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
BasicCourse basicCourse = basicCourseService.getById(markPaper.getCourseId());
|
|
BasicCourse basicCourse = basicCourseService.getById(markPaper.getCourseId());
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
SysUser sysUser = (SysUser) ServletUtil.getRequestUser();
|
|
//生成表头
|
|
//生成表头
|
|
- String[] columnName = new String[]{"学生姓名", "学号", "学院", "教学班", "行政班", "课程代码", "课程名称", "状态", "客观分", "主观分", "成绩"};
|
|
|
|
|
|
+ String[] columnName = new String[]{"学生姓名", "学号", "学院", "教学班", "行政班", "课程代码", "课程名称", "状态", "违纪状态", "客观分", "主观分", "成绩"};
|
|
List<MarkQuestion> oQuestionList = markQuestionService.listQuestionByExamIdAndPaperNumberAndGroupNumber(query.getExamId(), query.getPaperNumber(), null, true);
|
|
List<MarkQuestion> oQuestionList = markQuestionService.listQuestionByExamIdAndPaperNumberAndGroupNumber(query.getExamId(), query.getPaperNumber(), null, true);
|
|
List<MarkQuestion> sQuestionList = markQuestionService.listQuestionByExamIdAndPaperNumberAndGroupNumber(query.getExamId(), query.getPaperNumber(), null, false);
|
|
List<MarkQuestion> sQuestionList = markQuestionService.listQuestionByExamIdAndPaperNumberAndGroupNumber(query.getExamId(), query.getPaperNumber(), null, false);
|
|
List<String> columnNameList = new ArrayList<>(Arrays.asList(columnName));
|
|
List<String> columnNameList = new ArrayList<>(Arrays.asList(columnName));
|
|
@@ -1283,7 +1297,26 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
valueList.add(CellValue.of(s.getClassName()));
|
|
valueList.add(CellValue.of(s.getClassName()));
|
|
valueList.add(CellValue.of(s.getCourseCode()));
|
|
valueList.add(CellValue.of(s.getCourseCode()));
|
|
valueList.add(CellValue.of(s.getCourseName()));
|
|
valueList.add(CellValue.of(s.getCourseName()));
|
|
- valueList.add(CellValue.of(Objects.nonNull(s.getStatus()) ? s.getStatus().getName() : ""));
|
|
|
|
|
|
+ String studentStatusDisplay = "";
|
|
|
|
+ // 扫描状态
|
|
|
|
+ if (BasicExamStudentStatusEnum.M.equals(s.getStudentStatus()) || s.getAbsent() || s.getOmrAbsent() || s.getManualAbsent()) {
|
|
|
|
+ studentStatusDisplay = "缺考";
|
|
|
|
+ } else if (ScanStatus.UNEXIST.equals(s.getScanStatus())) {
|
|
|
|
+ studentStatusDisplay = ScanStatus.UNEXIST.getName();
|
|
|
|
+ } else {
|
|
|
|
+ studentStatusDisplay = "正常";
|
|
|
|
+ }
|
|
|
|
+ s.setStudentStatusDisplay(studentStatusDisplay);
|
|
|
|
+ valueList.add(CellValue.of(studentStatusDisplay));
|
|
|
|
+
|
|
|
|
+ String breachDisplay = "";
|
|
|
|
+ // 违纪状态
|
|
|
|
+ if (BasicExamStudentStatusEnum.B.equals(s.getStudentStatus()) || s.getBreach() || s.getOmrBreach() || s.getManualBreach()) {
|
|
|
|
+ breachDisplay = "违纪";
|
|
|
|
+ }
|
|
|
|
+ s.setBreachDisplay(breachDisplay);
|
|
|
|
+ valueList.add(CellValue.of(breachDisplay));
|
|
|
|
+
|
|
valueList.add(s.getObjectiveScore() == null ? CellValue.of("") : CellValue.of(s.getObjectiveScore()));
|
|
valueList.add(s.getObjectiveScore() == null ? CellValue.of("") : CellValue.of(s.getObjectiveScore()));
|
|
valueList.add(s.getSubjectiveScore() == null ? CellValue.of("") : CellValue.of(s.getSubjectiveScore()));
|
|
valueList.add(s.getSubjectiveScore() == null ? CellValue.of("") : CellValue.of(s.getSubjectiveScore()));
|
|
valueList.add(s.getTotalScore() == null ? CellValue.of("") : CellValue.of(s.getTotalScore()));
|
|
valueList.add(s.getTotalScore() == null ? CellValue.of("") : CellValue.of(s.getTotalScore()));
|
|
@@ -2336,8 +2369,7 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
UpdateWrapper<MarkStudent> markStudentUpdateWrapper = new UpdateWrapper<>();
|
|
UpdateWrapper<MarkStudent> markStudentUpdateWrapper = new UpdateWrapper<>();
|
|
markStudentUpdateWrapper.lambda().eq(MarkStudent::getId, studentId).set(MarkStudent::getManualBreach, breach)
|
|
markStudentUpdateWrapper.lambda().eq(MarkStudent::getId, studentId).set(MarkStudent::getManualBreach, breach)
|
|
.set(MarkStudent::getOmrBreach, false)
|
|
.set(MarkStudent::getOmrBreach, false)
|
|
- .set(MarkStudent::getBreach, breach)
|
|
|
|
- .set(MarkStudent::getPaperTypeCheckStatus, PaperTypeCheckStatus.PROCESSED);
|
|
|
|
|
|
+ .set(MarkStudent::getBreach, breach);
|
|
this.update(markStudentUpdateWrapper);
|
|
this.update(markStudentUpdateWrapper);
|
|
return UpdateTimeVo.create();
|
|
return UpdateTimeVo.create();
|
|
}
|
|
}
|