解决按批次对比分析页面每个年级通过率数据存在的问题
This commit is contained in:
parent
a954982686
commit
ac0523706f
|
@ -128,6 +128,7 @@ public class Cet_4ServiceImpl extends ServiceImpl<Cet_4Mapper, Cet_4> implements
|
|||
if(college.equals("全校")){
|
||||
collect = passedList.stream().collect(Collectors.groupingBy(Cet_4::getCollege));
|
||||
}else{
|
||||
//TODO:majorname为空时存在异常
|
||||
collect = passedList.stream().collect(Collectors.groupingBy(Cet_4::getMajorname));
|
||||
}
|
||||
|
||||
|
@ -591,7 +592,9 @@ public class Cet_4ServiceImpl extends ServiceImpl<Cet_4Mapper, Cet_4> implements
|
|||
if (getRateByEntryDateDtoParams.getMajor() != null && !getRateByEntryDateDtoParams.getMajor().isEmpty()) {
|
||||
cet4StudentCount.eq(Cet_4::getMajorname, getRateByEntryDateDtoParams.getMajor());
|
||||
}
|
||||
long allStudentCount = cet4Mapper.selectCount(cet4StudentCount);
|
||||
cet4StudentCount.groupBy(Cet_4::getCode);
|
||||
List<Object> allStudentList = cet4Mapper.selectObjs(cet4StudentCount);
|
||||
long allStudentCount = allStudentList.size();
|
||||
// 统计当前 entryDate 下的通过人数
|
||||
//所有参加过四级考试的学生
|
||||
Map<String, Integer> attendMap4 = new HashMap<>();
|
||||
|
|
Loading…
Reference in New Issue