Browse Source

bug修复

master
luogw 1 month ago
parent
commit
d2dcb37da5
  1. 2
      src/main/java/com/project/exam/domain/service/strategy/SubjectiveScoringStrategy.java
  2. 2
      src/main/java/com/project/interaction/domain/dto/AiScoringResponseDTO.java

2
src/main/java/com/project/exam/domain/service/strategy/SubjectiveScoringStrategy.java

@ -81,7 +81,7 @@ public class SubjectiveScoringStrategy implements ScoringStrategy {
List<Integer> hitPoints = new ArrayList<>();
for (int i = 0; i < response.getData().size(); i++) {
AiScoringResponseDTO.PointScore ps = response.getData().get(i);
Integer algoScore = ps.getScore();
Double algoScore = ps.getScore();
if (algoScore != null && algoScore > 0) {
hitCount++;
hitPoints.add(i);

2
src/main/java/com/project/interaction/domain/dto/AiScoringResponseDTO.java

@ -38,7 +38,7 @@ public class AiScoringResponseDTO {
private String scorePoint;
/** 该得分点得分 */
private Integer score;
private Double score;
/** 评分理由 */
private String reason;

Loading…
Cancel
Save