|
|
@@ -37,8 +37,10 @@
|
|
|
GROUP BY t1.question_id,t1.answer_id
|
|
|
</select>
|
|
|
<select id="getStudentQuestionResultList" resultType="com.xjrsoft.module.assessment.vo.AssessmentPlanAnswerDetailVo">
|
|
|
- SELECT question_id,answer_id FROM assessment_plan_answer_result WHERE delete_mark = 0 AND assessment_template_plan_id = #{templatePlanId}
|
|
|
- and student_user_id = #{studentUserId}
|
|
|
- order BY id
|
|
|
+ SELECT t1.question_id,IFNULL(t2.name, t1.answer_id) FROM assessment_plan_answer_result t1
|
|
|
+ LEFT JOIN assessment_plan_question t2 ON t1.answer_id = CAST(t2.id AS CHAR)
|
|
|
+ WHERE t1.delete_mark = 0 AND t1.assessment_template_plan_id = #{templatePlanId}
|
|
|
+ and t1.student_user_id = #{studentUserId}
|
|
|
+ order BY t1.id
|
|
|
</select>
|
|
|
</mapper>
|