| | |
| | | |
| | | |
| | | @Override |
| | | public IPage<ExamPaperVO> selectExamPaperPage(IPage<ExamScoreVO> page, ExamPaperVO exam) { |
| | | return baseMapper.selectExamPaperPage(page,exam); |
| | | public IPage<ExamPaperVO> selectExamPaperPages(IPage<ExamScoreVO> page, ExamPaperVO exam) { |
| | | return baseMapper.selectExamPaperPages(page,exam); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 自定义查询 |
| | | * @param page 分页条件 |
| | | * @param examPaperVO 查询参数 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<ExamPaperVO> selectExamPaperPage(IPage<ExamScoreVO> page, ExamPaperVO examPaperVO) { |
| | | IPage<ExamPaperVO> examPaperVOIPage = baseMapper.selectExamPaperPage(page, examPaperVO); |
| | | List<ExamPaperVO> records = examPaperVOIPage.getRecords(); |
| | | records.forEach(examPaperVO1 -> { |
| | | //查询每个考试的报名人员数量 |
| | | if (examPaperVO1.getExamType()==1) { |
| | | examPaperVO1.setNum(baseMapper.getApplyNumber(examPaperVO1)); |
| | | } |
| | | //模拟考试 |
| | | if (examPaperVO1.getExamType()==2) { |
| | | examPaperVO1.setNum(baseMapper.getTrainNumber(examPaperVO1)); |
| | | } |
| | | }); |
| | | return examPaperVOIPage; |
| | | } |
| | | |
| | | @Override |