|
@@ -1370,7 +1370,7 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
|
|
|
// 计算教师排名
|
|
|
for (TAExamCourseCollegeTeacher taExamCourseCollegeTeacher : rankTempList) {
|
|
|
BigDecimal thisAvgScoreAssign = taExamCourseCollegeTeacher.getAvgScoreAssign();
|
|
|
- int rank = (int) (rankTempList.stream().filter(e -> e.getAvgScoreAssign().compareTo(thisAvgScoreAssign) > 0).count() + 1);
|
|
|
+ int rank = (int) (rankTempList.stream().filter(e -> (e.getAvgScoreAssign().setScale(SystemConstant.FINAL_SCALE,BigDecimal.ROUND_HALF_UP)).compareTo(thisAvgScoreAssign.setScale(SystemConstant.FINAL_SCALE,BigDecimal.ROUND_HALF_UP)) > 0).count() + 1);
|
|
|
taExamCourseCollegeTeacher.setTeacherRank(rank);
|
|
|
taExamCourseCollegeTeacherList.add(taExamCourseCollegeTeacher);
|
|
|
}
|