|
@@ -1426,7 +1426,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
public boolean rejectMarkTask(MarkTask markTask, Long userId, String reason) {
|
|
|
MarkPaper markPaper = markPaperService.getByExamIdAndPaperNumber(markTask.getExamId(), markTask.getPaperNumber());
|
|
|
if (MarkPaperStatus.FINISH.equals(markPaper.getStatus())) {
|
|
|
- return false;
|
|
|
+ throw ExceptionResultEnum.MARK_PAPER_FINISH.exception();
|
|
|
}
|
|
|
MarkRejectHistory history = new MarkRejectHistory(markTask);
|
|
|
MarkStudent markStudent = markStudentService.getById(markTask.getStudentId());
|