|
@@ -42,7 +42,12 @@ public class ExamSummaryServiceImpl extends ServiceImpl<ExamSummaryDao, ExamSumm
|
|
@Override
|
|
@Override
|
|
@Transactional
|
|
@Transactional
|
|
public ExamSummaryEntity find(Long examId) {
|
|
public ExamSummaryEntity find(Long examId) {
|
|
- return getById(examId);
|
|
|
|
|
|
+ ExamSummaryEntity es = getById(examId);
|
|
|
|
+ if (es == null) {
|
|
|
|
+ es = build(examId);
|
|
|
|
+ saveOrUpdate(es);
|
|
|
|
+ }
|
|
|
|
+ return es;
|
|
}
|
|
}
|
|
|
|
|
|
private ExamSummaryEntity build(Long examId) {
|
|
private ExamSummaryEntity build(Long examId) {
|