|
@@ -778,13 +778,14 @@ public class MarkServiceImpl implements MarkService {
|
|
|
for (MarkUserGroup markUserGroup : markUserGroups) {
|
|
|
MarkGroup markGroup = markGroupService.getByExamIdAndPaperNumberAndGroupNumber(examId, paperNumber,
|
|
|
markUserGroup.getGroupNumber());
|
|
|
+ markGroup.setQuestionList(markQuestionService.listQuestionByExamIdAndPaperNumberAndGroupNumber(examId, paperNumber, markUserGroup.getGroupNumber(), false));
|
|
|
MarkGroupDto dto = new MarkGroupDto();
|
|
|
dto.setGroupNumber(markUserGroup.getGroupNumber());
|
|
|
dto.setTotalCount(markTaskService.countByExamIdAndPaperNumberAndGroupNumber(examId, paperNumber,
|
|
|
markUserGroup.getGroupNumber()));
|
|
|
dto.setMarkedCount(markTaskService.countByExamIdAndPaperNumberAndGroupNumberAndStatusIn(examId, paperNumber,
|
|
|
markUserGroup.getGroupNumber(), Arrays.asList(MarkTaskStatus.MARKED, MarkTaskStatus.ARBITRATED)));
|
|
|
- dto.setGroupQuestions(markGroup.getQuestionTitle());
|
|
|
+ dto.setGroupQuestions(markGroup.getGroupQuestions());
|
|
|
dto.setTitle(markGroup.getTitle());
|
|
|
list.add(dto);
|
|
|
}
|
|
@@ -918,6 +919,10 @@ public class MarkServiceImpl implements MarkService {
|
|
|
if (!"markerTime".equals(order) && !"markerScore".equals(order)) {
|
|
|
throw ExceptionResultEnum.ERROR.exception("排序错误");
|
|
|
}
|
|
|
+ MarkGroup group = markGroupService.getByExamIdAndPaperNumberAndGroupNumber(examId, paperNumber, groupNumber);
|
|
|
+ if (group == null) {
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("评卷大题不存在");
|
|
|
+ }
|
|
|
Page<MarkTask> page = new Page<>(pageNumber, pageSize);
|
|
|
OrderItem orderItem = new OrderItem(order, sort.equals(Sort.asc));
|
|
|
page.addOrder(orderItem);
|
|
@@ -925,7 +930,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
secretNumber, markerScore);
|
|
|
List<MarkTaskDto> recordsDtos =new ArrayList<MarkTaskDto>();
|
|
|
for (MarkTask task : list.getRecords()) {
|
|
|
- MarkTaskDto dto = this.getTaskDto(task);
|
|
|
+ MarkTaskDto dto = this.getTaskDto(task,group);
|
|
|
recordsDtos.add(dto);
|
|
|
}
|
|
|
IPage<MarkTaskDto> result = new Page<MarkTaskDto>();
|
|
@@ -963,7 +968,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
}
|
|
|
for (MarkTask t : list) {
|
|
|
if (this.applyTask(t, userId)) {
|
|
|
- task = this.getTaskDto(t);
|
|
|
+ task = this.getTaskDto(t,group);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -1055,6 +1060,9 @@ public class MarkServiceImpl implements MarkService {
|
|
|
history.setPaperNumber(task.getPaperNumber());
|
|
|
history.setGroupNumber(task.getGroupNumber());
|
|
|
history.setType(result.getProblemType());
|
|
|
+ if(MarkProblemType.OTHER.equals(result.getProblemType())) {
|
|
|
+ history.setRemark(result.getProblemRemark());
|
|
|
+ }
|
|
|
history.setStatus(MarkProblemStatus.WAITING);
|
|
|
history.setUserId(userId);
|
|
|
markProblemHistoryService.save(history);
|
|
@@ -1179,9 +1187,11 @@ public class MarkServiceImpl implements MarkService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public MarkTaskDto getTaskDto(MarkTask t) {
|
|
|
+ public MarkTaskDto getTaskDto(MarkTask t,MarkGroup group) {
|
|
|
MarkTaskDto task = new MarkTaskDto(t);
|
|
|
task.setQuestionList(buildMarkStep(t));
|
|
|
+ task.setSheetUrls(null);
|
|
|
+ task.setSliceConfig(group.getPictureConfigList());
|
|
|
return task;
|
|
|
}
|
|
|
|