Browse Source

3.4.2 update

xiaofei 6 tháng trước cách đây
mục cha
commit
b93b10a723

+ 1 - 1
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/impl/MarkServiceImpl.java

@@ -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());