|
|
|
@ -421,18 +421,15 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<select id="selectTrainingByIds" resultMap="DtoBaseResultMap">
|
|
|
|
|
SELECT SUM(sqs.score) AS total_steps_score, sqs.case_id,COUNT(sqs.case_step_id) AS total_steps_count, sq.title,
|
|
|
|
|
scc.three_name
|
|
|
|
|
SELECT SUM(sqs.score) AS total_steps_score, sqs.case_id,COUNT(sqs.case_step_id) AS total_steps_count, sq.title, s3.three_name
|
|
|
|
|
FROM sys_case_question_steps sqs
|
|
|
|
|
JOIN sys_case_questions sq ON sqs.case_id = sq.case_id
|
|
|
|
|
JOIN sys_three_catalog scc
|
|
|
|
|
JOIN sys_topic_and_course st ON st.three_id = scc.three_id
|
|
|
|
|
JOIN sys_topic_and_course s3 ON sq.case_id = s3.topic_id
|
|
|
|
|
WHERE sqs.case_id IN
|
|
|
|
|
<foreach item="item" collection="list" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
and st.topic_id = sqs.case_id
|
|
|
|
|
GROUP BY sq.title, scc.three_name,sqs.case_id;
|
|
|
|
|
GROUP BY sq.title, s3.three_name,sqs.case_id;
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|