|
|
@@ -31,6 +31,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="knowledgeIds" column="knowledge_ids"/>
|
|
|
<result property="publishStatus" column="publish_status"/>
|
|
|
<result property="code" column="code"/>
|
|
|
+ <result property="score" column="score"/>
|
|
|
+ <result property="partScore" column="part_score"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getKnowledQuestionList" parameterType="com.zhongzheng.modules.bank.bo.ExamSimulateQueryBo" resultType="Long">
|
|
|
@@ -154,9 +156,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="queryBatchList" parameterType="com.zhongzheng.modules.bank.bo.ExamSimulateQueryBo" resultMap="QuestionResultVo">
|
|
|
SELECT
|
|
|
- q.*
|
|
|
+ q.*, eq.part_score,
|
|
|
+ eq.score
|
|
|
FROM
|
|
|
- exam_simulate_question esq left join question q on esq.question_id = q.question_id where esq.simulate_exam_id = #{simulateExamId} ORDER BY esq.sort
|
|
|
+ exam_simulate_question esq left join question q on esq.question_id = q.question_id
|
|
|
+ left join exam_simulate es on es.simulate_exam_id = esq.simulate_exam_id
|
|
|
+ left join exam_question eq on eq.question_id = esq.question_id and eq.exam_id = es.exam_id
|
|
|
+ where esq.simulate_exam_id = #{simulateExamId} ORDER BY esq.sort
|
|
|
|
|
|
</select>
|
|
|
</mapper>
|