| | |
| | | RAND() |
| | | LIMIT #{num} |
| | | </select> |
| | | |
| | | <resultMap id="exportDataMap" type="com.ycl.jxkg.domain.vo.admin.exam.QuestionExportData"> |
| | | <result column="question_type" property="questionType"/> |
| | | <result column="title" property="title"/> |
| | | <result column="analyze" property="analyze"/> |
| | | <result column="content" property="content"/> |
| | | <result column="correct" property="answer"/> |
| | | <collection property="subjectList" column="id" ofType="string" select="selectSubjects"/> |
| | | </resultMap> |
| | | |
| | | <select id="export" resultType="com.ycl.jxkg.domain.vo.admin.exam.ExamPaperImportVO"> |
| | | SELECT |
| | | q.*, |
| | | s.NAME AS SUBJECT |
| | | FROM t_question q |
| | | LEFT JOIN t_subject s ON subject_id = s.id |
| | | ORDER BY q.id |
| | | </select> |
| | | |
| | | </mapper> |