|
@@ -43,6 +43,8 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
@Autowired
|
|
|
private StudentExamResultDao studentExamResultDao;
|
|
|
@Autowired
|
|
|
+ private ExamCertificationDao examCertificationDao;
|
|
|
+ @Autowired
|
|
|
private ImFeignService imFeignService;
|
|
|
@Autowired
|
|
|
private OrganizationService organizationService;
|
|
@@ -169,8 +171,9 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
MapUtil.populateMap(params, queryInfo);
|
|
|
Integer organId = queryInfo.getOrganId();
|
|
|
+ List<Integer> childOrganIds = null;
|
|
|
if(organId != null){
|
|
|
- List<Integer> childOrganIds = organizationService.getChildOrganIds(organId,true);
|
|
|
+ childOrganIds = organizationService.getChildOrganIds(organId,true);
|
|
|
if(childOrganIds == null || childOrganIds.size() == 0){
|
|
|
return pageInfo;
|
|
|
}
|
|
@@ -184,7 +187,7 @@ public class StudentServiceImpl extends BaseServiceImpl<Integer, Student> implem
|
|
|
dataList = studentDao.queryRegistrationList(params);
|
|
|
List<Integer> studentIds = dataList.stream().map(e -> e.getUserId()).collect(Collectors.toList());
|
|
|
//获取考试次数
|
|
|
- Map<Integer, Integer> examNumMap = MapUtil.convertMybatisMap(studentExamResultDao.countExamNum(studentIds, queryInfo.getTenantId()),Integer.class,Integer.class);
|
|
|
+ Map<Integer, Integer> examNumMap = MapUtil.convertMybatisMap(examCertificationDao.countExamNum(studentIds,childOrganIds),Integer.class,Integer.class);
|
|
|
|
|
|
List<Integer> studentId = studentExamResultDao.queryStudentByOrganId(organId);
|
|
|
|