|
@@ -200,10 +200,6 @@ public class StudentLessonExaminationServiceImpl extends ServiceImpl<StudentLess
|
|
|
//更新分数
|
|
|
detail.setActualAvgScore(actualScore.intValue() > detail.getAvgScore() ? detail.getAvgScore() : actualScore.intValue());
|
|
|
}
|
|
|
- //更新总分
|
|
|
- if(flag){
|
|
|
- baseMapper.updateTrainingScore(lessonExaminationId,userId);
|
|
|
- }
|
|
|
}
|
|
|
//更新详情
|
|
|
detail.setTrainingTime(now);
|
|
@@ -216,6 +212,9 @@ public class StudentLessonExaminationServiceImpl extends ServiceImpl<StudentLess
|
|
|
detail.setFileJson(JSON.toJSONString(submitDto.getFileJson()));
|
|
|
}
|
|
|
studentLessonExaminationDetailService.updateById(detail);
|
|
|
+
|
|
|
+ //更新总分
|
|
|
+ baseMapper.updateTrainingScore(lessonExaminationId,userId);
|
|
|
//更新达标人数
|
|
|
lessonExaminationDao.updateStandardNum(lessonExaminationId);
|
|
|
|