|
@@ -1217,7 +1217,7 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
|
|
|
List<TAExamCourseCollegeTeacher> rankTempList = new ArrayList<>();
|
|
|
// 该考查学院维度下授课教师
|
|
|
Set<Long> teacherIdSet = dataSource.stream()
|
|
|
- .filter(e -> inspectCollegeId.equals(e.getInspectCollegeId()))
|
|
|
+ .filter(e -> inspectCollegeId.equals(e.getInspectCollegeId()) && e.getStudentCurrent() && !e.getAbsent())
|
|
|
.map(TAExamCourseRecord::getTeacherId)
|
|
|
.collect(Collectors.toSet());
|
|
|
|
|
@@ -1281,9 +1281,6 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
|
|
|
int otherCollegeTotalCount = teacherRecordOtherCollegeList.size();
|
|
|
List<TAExamCourseRecord> teacherEffectiveOtherCollegeList = teacherRecordOtherCollegeList.stream().filter(e -> !e.getAbsent()).collect(Collectors.toList());
|
|
|
int otherCollegeRealityCount = teacherEffectiveOtherCollegeList.size();
|
|
|
- if (otherCollegeRealityCount == 0) {
|
|
|
- continue;
|
|
|
- }
|
|
|
int otherCollegeAbsentCount = otherCollegeTotalCount - otherCollegeRealityCount;
|
|
|
|
|
|
// 成绩统计
|
|
@@ -1291,6 +1288,10 @@ public class AnalyzeForReportServiceImpl implements AnalyzeForReportService {
|
|
|
.collect(Collectors.summarizingDouble(e -> e.getAssignedScore().doubleValue())); // 学生赋分的描述统计
|
|
|
double otherCollegeMinScoreAssign = otherCollegeDescribeStatistic.getMin();
|
|
|
double otherCollegeMaxScoreAssign = otherCollegeDescribeStatistic.getMax();
|
|
|
+ if (otherCollegeRealityCount == 0) {
|
|
|
+ otherCollegeMinScoreAssign = 0;
|
|
|
+ otherCollegeMaxScoreAssign = 0;
|
|
|
+ }
|
|
|
double otherCollegeAvgScoreAssign = otherCollegeDescribeStatistic.getAverage();
|
|
|
double otherCollegeAvgScore = teacherEffectiveOtherCollegeList.stream()
|
|
|
.collect(Collectors.summarizingDouble(e -> e.getTotalScore().doubleValue())).getAverage();
|