|
@@ -409,7 +409,11 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreDao, Studen
|
|
|
req.setQuestionTitle(q.getTitle());
|
|
|
AutoScoreResult ret = aiMarkingDispose(dto, req);
|
|
|
if (ret != null) {
|
|
|
- updateScore(score.getId(), ret.getTotalScore());
|
|
|
+ List<Double> stepScore = new ArrayList<>();
|
|
|
+ for (Double d : ret.getStepScore()) {
|
|
|
+ stepScore.add(d);
|
|
|
+ }
|
|
|
+ updateScore(score.getId(), ret.getTotalScore(), stepScore);
|
|
|
} else {
|
|
|
updateScoreNone(score.getId(), 0.0);
|
|
|
}
|
|
@@ -445,11 +449,12 @@ public class StudentScoreServiceImpl extends ServiceImpl<StudentScoreDao, Studen
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void updateScore(Long id, Double aiScore) {
|
|
|
+ private void updateScore(Long id, Double aiScore, List<Double> scoreStep) {
|
|
|
UpdateWrapper<StudentScoreEntity> wrapper = new UpdateWrapper<>();
|
|
|
LambdaUpdateWrapper<StudentScoreEntity> lw = wrapper.lambda();
|
|
|
lw.set(StudentScoreEntity::getScoreStatus, DataStatus.SUCCESS);
|
|
|
lw.set(StudentScoreEntity::getAiScore, aiScore);
|
|
|
+ lw.set(StudentScoreEntity::getStepScore, JSONArray.toJSONString(scoreStep));
|
|
|
lw.set(StudentScoreEntity::getErrMsg, null);
|
|
|
lw.set(StudentScoreEntity::getScoreNone, false);
|
|
|
lw.eq(StudentScoreEntity::getId, id);
|