|
@@ -526,7 +526,7 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreDao, Studen
|
|
|
req.setSubjectName(q.getSubjectName());
|
|
|
Double ret = aiMarkingDispose(dto, org, req);
|
|
|
if (ret != null) {
|
|
|
- updateScore(score.getId(), Calculator.multiply(q.getFullScore(), ret));
|
|
|
+ updateScore(score.getId(), Calculator.multiply(q.getFullScore(), ret),ret);
|
|
|
if (allSuccess(score.getStudentId())) {
|
|
|
studentService.updateStatus(score.getStudentId(), DataStatus.PROCESSING, DataStatus.SUCCESS);
|
|
|
}
|
|
@@ -579,11 +579,12 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreDao, Studen
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void updateScore(Long id, Double aiScore) {
|
|
|
+ private void updateScore(Long id, Double aiScore,Double scoreRatio) {
|
|
|
UpdateWrapper<StudentScoreEntity> wrapper = new UpdateWrapper<>();
|
|
|
LambdaUpdateWrapper<StudentScoreEntity> lw = wrapper.lambda();
|
|
|
lw.set(StudentScoreEntity::getScoreStatus, DataStatus.SUCCESS);
|
|
|
lw.set(StudentScoreEntity::getAiScore, aiScore);
|
|
|
+ lw.set(StudentScoreEntity::getScoreRatio, scoreRatio);
|
|
|
lw.eq(StudentScoreEntity::getId, id);
|
|
|
this.update(wrapper);
|
|
|
}
|