|
@@ -152,7 +152,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
*/
|
|
|
// 该课程往届数据
|
|
|
List<TAExamCourseRecord> pastDatasource = totalDatasource.stream()
|
|
|
- .filter(e -> !e.getCurrent()).collect(Collectors.toList());
|
|
|
+ .filter(e -> !e.getStudentCurrent()).collect(Collectors.toList());
|
|
|
int pastTotalCount = pastDatasource.size();
|
|
|
long pastRealityCount = pastDatasource.stream().filter(e -> !e.getAbsent()).count();
|
|
|
long pastAbsentCount = pastDatasource.stream().filter(TAExamCourseRecord::getAbsent).count();
|
|
@@ -166,7 +166,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
*/
|
|
|
// 该课程下应届数据
|
|
|
List<TAExamCourseRecord> currentDatasource = totalDatasource.stream()
|
|
|
- .filter(TAExamCourseRecord::getCurrent).collect(Collectors.toList());
|
|
|
+ .filter(TAExamCourseRecord::getStudentCurrent).collect(Collectors.toList());
|
|
|
// 人数统计
|
|
|
int currentTotalCount = currentDatasource.size();
|
|
|
long currentRealityCount = currentDatasource.stream().filter(e -> !e.getAbsent()).count();
|
|
@@ -305,7 +305,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
List<TAExamCourseRecord> taExamCourseRecordDatasource = taExamCourseRecordService.list(new QueryWrapper<TAExamCourseRecord>().lambda()
|
|
|
.eq(TAExamCourseRecord::getExamId,examId)
|
|
|
.eq(TAExamCourseRecord::getAbsent,false)
|
|
|
- .eq(TAExamCourseRecord::getCurrent,true));
|
|
|
+ .eq(TAExamCourseRecord::getStudentCurrent,true));
|
|
|
|
|
|
List<String> effectiveCourseCodeList = tbExamCourseService.findEffectiveByExamId(examId,courseCode);
|
|
|
|
|
@@ -339,7 +339,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
}
|
|
|
taExamCourseRecordService.saveOrUpdateBatch(dataSource);
|
|
|
}
|
|
|
- return "exm_pap_tik 表更新完成";
|
|
|
+ return " 't_a_exam_course_record' 表更新完成";
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@@ -358,7 +358,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
|
|
|
// 本课程下所有应届考生考生记录
|
|
|
List<TAExamCourseRecord> recordCourseCurrentDatasource = recordDatasource.stream()
|
|
|
- .filter(e -> effectiveCourseCode.equals(e.getCourseCode()) && e.getCurrent()).collect(Collectors.toList());
|
|
|
+ .filter(e -> effectiveCourseCode.equals(e.getCourseCode()) && e.getStudentCurrent()).collect(Collectors.toList());
|
|
|
|
|
|
List<Long> inspectCollegeIdList = recordCourseCurrentDatasource.stream().filter(e -> !e.getAbsent()).map(TAExamCourseRecord::getInspectCollegeId).distinct().collect(Collectors.toList());
|
|
|
for (Long collegeId : inspectCollegeIdList) {
|
|
@@ -447,7 +447,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
.eq(TAExamCourseClazz::getCourseCode,effectiveCourseCode));
|
|
|
|
|
|
List<TAExamCourseRecord> recordCourseCurrentDatasource = recordDatasource.stream()
|
|
|
- .filter(e -> effectiveCourseCode.equals(e.getCourseCode()) && e.getCurrent()).collect(Collectors.toList());
|
|
|
+ .filter(e -> effectiveCourseCode.equals(e.getCourseCode()) && e.getStudentCurrent()).collect(Collectors.toList());
|
|
|
List<Long> clazzIdList = recordCourseCurrentDatasource.stream().filter(e -> !e.getAbsent()).map(TAExamCourseRecord::getClazzId).distinct().collect(Collectors.toList());
|
|
|
for (Long clazzId : clazzIdList) {
|
|
|
List<TAExamCourseRecord> clazzEffectiveRecordDatasource = recordCourseCurrentDatasource.stream()
|
|
@@ -518,7 +518,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
for (String effectiveCourseCode : effectiveCourseCodeList) {
|
|
|
// 有效考生作答数据源
|
|
|
List<TAExamCourseRecord> effectiveDatasource = dataSource.stream()
|
|
|
- .filter(e -> effectiveCourseCode.equals(e.getCourseCode()) && !e.getAbsent() && e.getCurrent()).collect(Collectors.toList());
|
|
|
+ .filter(e -> effectiveCourseCode.equals(e.getCourseCode()) && !e.getAbsent() && e.getStudentCurrent()).collect(Collectors.toList());
|
|
|
|
|
|
// 考察点数据源
|
|
|
List<TBDimension> dimensionDatasource = tbDimensionService.list(new QueryWrapper<TBDimension>().lambda()
|
|
@@ -975,7 +975,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
for (Long teacherId : teacherIdSet) {
|
|
|
// 该教师数据
|
|
|
List<TAExamCourseRecord> teacherRecordList = dataSource.stream()
|
|
|
- .filter(e -> inspectCollegeId.equals(e.getInspectCollegeId()) && teacherId.equals(e.getTeacherId()) && e.getCurrent())
|
|
|
+ .filter(e -> inspectCollegeId.equals(e.getInspectCollegeId()) && teacherId.equals(e.getTeacherId()) && e.getStudentCurrent())
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
// 学生人数
|
|
@@ -1085,7 +1085,7 @@ public class AnalyzeForStudentServiceImpl implements AnalyzeForStudentService {
|
|
|
List<TAExamCourseTeacher> taExamCourseTeacherList = new ArrayList<>();
|
|
|
List<TAExamCourseRecord> dataSource = taExamCourseRecordService.list(new QueryWrapper<TAExamCourseRecord>().lambda()
|
|
|
.eq(TAExamCourseRecord::getExamId,examId).eq(TAExamCourseRecord::getCourseCode,effectiveCourseCode));
|
|
|
- List<TAExamCourseRecord> currentSource = dataSource.stream().filter(TAExamCourseRecord::getCurrent).collect(Collectors.toList());
|
|
|
+ List<TAExamCourseRecord> currentSource = dataSource.stream().filter(TAExamCourseRecord::getStudentCurrent).collect(Collectors.toList());
|
|
|
|
|
|
Set<Long> teacherIdList = currentSource.stream().map(TAExamCourseRecord::getTeacherId).collect(Collectors.toSet());
|
|
|
for (Long teacherId : teacherIdList) {
|