|
@@ -0,0 +1,42 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.zhongzheng.modules.bank.mapper.QuestionChapterExamMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.zhongzheng.modules.bank.domain.QuestionChapterExam" id="QuestionChapterExamResult">
|
|
|
+ <result property="examId" column="exam_id"/>
|
|
|
+ <result property="chapterExamId" column="chapter_exam_id"/>
|
|
|
+ <result property="sort" column="sort"/>
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <resultMap type="com.zhongzheng.modules.bank.vo.ExamVo" id="QuestionChapterExamResultVo">
|
|
|
+ <result property="examId" column="exam_id"/>
|
|
|
+ <result property="status" column="status"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
+ <result property="prefixName" column="prefix_name"/>
|
|
|
+ <result property="code" column="code"/>
|
|
|
+ <result property="examName" column="exam_name"/>
|
|
|
+ <result property="publishStatus" column="publish_status"/>
|
|
|
+ <result property="year" column="year"/>
|
|
|
+ <result property="cityId" column="city_id"/>
|
|
|
+ <result property="provinceId" column="province_id"/>
|
|
|
+ <result property="examPaperId" column="exam_paper_id"/>
|
|
|
+ <result property="answerTime" column="answer_time"/>
|
|
|
+ <result property="examPaperId" column="exam_paper_id"/>
|
|
|
+ <result property="answerNum" column="answer_num"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <select id="getList" parameterType="com.zhongzheng.modules.bank.bo.QuestionChapterExamQueryBo" resultMap="QuestionChapterExamResultVo">
|
|
|
+ SELECT
|
|
|
+ e.*
|
|
|
+ FROM
|
|
|
+ question_chapter_exam qce
|
|
|
+ LEFT JOIN exam e ON qce.exam_id = e.exam_id
|
|
|
+ WHERE
|
|
|
+ qce.chapter_exam_id =#{chapterExamId}
|
|
|
+
|
|
|
+ </select>
|
|
|
+</mapper>
|