|
@@ -577,7 +577,7 @@ public class BaseStudentAssessmentInspectionServiceImpl extends MPJBaseServiceIm
|
|
for (Long id : evaluateCategoryMap.keySet()) {
|
|
for (Long id : evaluateCategoryMap.keySet()) {
|
|
List<TeaEvaluateClassListVo> resultList = evaluateCategoryMap.get(id);
|
|
List<TeaEvaluateClassListVo> resultList = evaluateCategoryMap.get(id);
|
|
int allSorce = resultList.stream().mapToInt(TeaEvaluateClassListVo::getScore).sum();
|
|
int allSorce = resultList.stream().mapToInt(TeaEvaluateClassListVo::getScore).sum();
|
|
- double avgScore = BigDecimal.valueOf(allSorce).divide(BigDecimal.valueOf(resultList.size())).setScale(2, RoundingMode.HALF_UP).doubleValue();
|
|
|
|
|
|
+ double avgScore = BigDecimal.valueOf(allSorce).divide(BigDecimal.valueOf(resultList.size()), 2, RoundingMode.HALF_UP).doubleValue();
|
|
evaluateSocreList.add(avgScore);
|
|
evaluateSocreList.add(avgScore);
|
|
}
|
|
}
|
|
double sum = evaluateSocreList.stream().mapToDouble(Double::doubleValue).sum();
|
|
double sum = evaluateSocreList.stream().mapToDouble(Double::doubleValue).sum();
|