| | |
| | | return R.data(detail); |
| | | } |
| | | |
| | | /** |
| | | * 查询试卷包含的题目 |
| | | */ |
| | | @GetMapping("/getEexPaperChoices") |
| | | public R<IPage<ExamSubjectChoicesVO>> getEexPaperChoices(ExamSubjectChoicesVO examSubjectChoices, Query query) { |
| | | IPage<ExamSubjectChoicesVO> pages = examSubjectChoicesService.getEexPaperChoices(Condition.getPage(query), examSubjectChoices); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | } |
| | |
| | | List<ExamSubjectChoicesVO> selectExamSubjectChoicesPage(IPage page, @Param("examSubjectChoices") ExamSubjectChoicesVO examSubjectChoices); |
| | | |
| | | /** |
| | | * 查询试卷题目 |
| | | * @param page |
| | | * @param examSubjectChoices |
| | | * @return |
| | | */ |
| | | List<ExamSubjectChoicesVO> getEexPaperChoices(IPage page, ExamSubjectChoicesVO examSubjectChoices); |
| | | |
| | | /** |
| | | * 详情 |
| | | * |
| | | * @param examSubjectChoices 选择题信息对象 |
| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询试卷绑定的题目--> |
| | | <select id="getEexPaperChoices" resultType="org.springblade.modules.exam.vo.ExamSubjectChoicesVO"> |
| | | SELECT |
| | | esc.* |
| | | FROM |
| | | exam_subject_choices esc |
| | | LEFT JOIN exam_examination_subject exa ON esc.id = exa.subject_id |
| | | WHERE |
| | | 1=1 |
| | | <if test="examSubjectChoices.id!=null and examSubjectChoices.id!=''"> |
| | | and exa.examination_id = #{examSubjectChoices.id} |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <!--ExamSubjectChoicesInfoMap 多表联查 一对多查询 --> |
| | | <resultMap id="ExamSubjectChoicesInfoMap" type="org.springblade.modules.exam.vo.ExamSubjectChoicesVO"> |
| | |
| | | IPage<ExamSubjectChoicesVO> selectExamSubjectChoicesPage(IPage<ExamSubjectChoicesVO> page, ExamSubjectChoicesVO examSubjectChoices); |
| | | |
| | | /** |
| | | * 查询试卷题目 |
| | | * @param page |
| | | * @param examSubjectChoices |
| | | * @return |
| | | */ |
| | | IPage<ExamSubjectChoicesVO> getEexPaperChoices(IPage<ExamSubjectChoicesVO> page, ExamSubjectChoicesVO examSubjectChoices); |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param examSubjectChoices 选择题信息对象 |
| | | */ |
| | |
| | | return page.setRecords(baseMapper.selectExamSubjectChoicesPage(page, examSubjectChoices)); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<ExamSubjectChoicesVO> getEexPaperChoices(IPage<ExamSubjectChoicesVO> page, ExamSubjectChoicesVO examSubjectChoices) { |
| | | return page.setRecords(baseMapper.getEexPaperChoices(page, examSubjectChoices)); |
| | | } |
| | | |
| | | /** |
| | | * 详情 |
| | | * @param examSubjectChoices 选择题信息对象 |