|
@@ -747,8 +747,8 @@ public class MarkStudentServiceImpl extends ServiceImpl<MarkStudentMapper, MarkS
|
|
|
}
|
|
|
MarkPaper markPaper = markPaperService.getByExamIdAndPaperNumber(markStudent.getExamId(), markStudent.getPaperNumber());
|
|
|
|
|
|
- if (markPaper == null || markPaper.getStatus() == MarkPaperStatus.FINISH) {
|
|
|
- throw ExceptionResultEnum.ERROR.exception("科目已结束评卷,无法打分");
|
|
|
+ if (markPaper == null || !MarkPaperStatus.FINISH.equals(markPaper.getStatus())) {
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("科目未结束评卷,无法打分");
|
|
|
}
|
|
|
try {
|
|
|
lockService.watch(LockType.EXAM_SUBJECT, markStudent.getExamId(), markStudent.getPaperNumber());
|