| | |
| | | //查询考试信息 |
| | | ExamPaper paper = examPaperService.getById(apply.getExamId()); |
| | | map.put("examName",paper.getExamName()); |
| | | |
| | | int num = 0; |
| | | if (paper.getExamType()==1){ |
| | | //查询已报名的总人数 |
| | | int num = baseMapper.getApplyDeatailNum(paper.getId()); |
| | | num = baseMapper.getApplyDeatailNum(paper.getId()); |
| | | map.put("num",num); |
| | | //查询已报名的的人信息集合 |
| | | List<ApplyVO> applyVOList = baseMapper.getApplyDetailList(paper.getId()); |
| | | map.put("applyList",applyVOList); |
| | | } |
| | | |
| | | //模拟考试 |
| | | if (paper.getExamType()==2){ |
| | | //查询已报名的总人数 |
| | | num = baseMapper.getTrainDeatailNum(paper.getId()); |
| | | map.put("num",num); |
| | | //查询已报名的的人信息集合 |
| | | List<ApplyVO> applyVOList = baseMapper.getTrainDetailList(paper.getId()); |
| | | map.put("applyList",applyVOList); |
| | | } |
| | | |
| | | //返回数据 |
| | | return map; |
| | | } |