|
@@ -140,7 +140,7 @@ public class MutationCallBack implements AsyncTaskCallBack {
|
|
|
dtos.add(dto);
|
|
|
}
|
|
|
long catchNum = dtos.stream().filter(caughtNodeDTO -> caughtNodeDTO.getIfCatch() == true).count();
|
|
|
- double mutationScore = dtos.size() == 0 ? 0 : (double) catchNum / dtos.size();
|
|
|
+ double mutationScore = dtos.size() == 0 ? 0 : (double) catchNum / dtos.size() * 100;
|
|
|
generalCalculateScoreService.updateTypeGrade(userId,examId,caseId,dtos.get(0).getCategory(),mutationScore);
|
|
|
List<Grade> grades = analysisService.saveMutationScore(userId, examId, caseId, mutationScore);
|
|
|
if (grades != null && !grades.isEmpty()) {
|