|
|
|
@ -18,6 +18,8 @@
|
|
|
|
|
<result column="question_original" jdbcType="LONGVARCHAR" property="questionOriginal"/>
|
|
|
|
|
<result column="answer_original" jdbcType="LONGVARCHAR" property="answerOriginal"/>
|
|
|
|
|
<result column="practice_answer_original" jdbcType="LONGVARCHAR" property="practiceAnswerOriginal"/>
|
|
|
|
|
<result column="three_id" jdbcType="VARCHAR" property="threeId"/>
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -433,6 +435,7 @@
|
|
|
|
|
GROUP BY sq.title, s3.three_name,sqs.case_id;
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getCaseStepByIds" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
SELECT title,case_step_id,case_id,sort,score
|
|
|
|
|
FROM sys_case_question_steps
|
|
|
|
@ -442,6 +445,21 @@
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCaseStepListBatchByIdListAndSortss" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
SELECT st.three_id,sc.*
|
|
|
|
|
from sys_case_question_steps sc
|
|
|
|
|
left join sys_case_questions s
|
|
|
|
|
on sc.case_id = s.case_id
|
|
|
|
|
left join sys_topic_and_course st
|
|
|
|
|
on st.topic_id = s.case_id
|
|
|
|
|
where st.three_id in
|
|
|
|
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
order by s.create_time ,sc.sort
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCaseStepListBatchByIdListAndSort" resultMap="ResultMapWithBLOBs">
|
|
|
|
|
SELECT sc.*
|
|
|
|
|
from sys_case_question_steps sc
|
|
|
|
@ -452,4 +470,5 @@
|
|
|
|
|
where st.three_id = #{threeId}
|
|
|
|
|
order by s.create_time ,sc.sort
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|