|
@@ -123,12 +123,15 @@ public class StudentExamResultServiceImpl extends BaseServiceImpl<Long, StudentE
|
|
|
if(Objects.isNull(oldStudentExamResult)){
|
|
|
throw new BizException("考试结果不存在");
|
|
|
}
|
|
|
+ if(Objects.isNull(oldStudentExamResult.getAvgScore())){
|
|
|
+ throw new BizException("考试结果暂不可编辑");
|
|
|
+ }
|
|
|
ExaminationBasic examinationBasic = examinationBasicDao.get(oldStudentExamResult.getExaminationBasicId().longValue());
|
|
|
if(Objects.isNull(examinationBasic)){
|
|
|
throw new BizException("考级项目不存在");
|
|
|
}
|
|
|
if(ExamStatusEnum.RESULT_CONFIRM.equals(examinationBasic.getStatus())||ExamStatusEnum.CLOSE.equals(examinationBasic.getStatus())){
|
|
|
- throw new BizException("考试结果不可编辑");
|
|
|
+ throw new BizException("考试结果已确认");
|
|
|
}
|
|
|
studentExamResultDao.update(studentExamResult);
|
|
|
}
|