From d5f80c24adbef34f8e66cedb46a72a6395134445 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 14 五月 2024 15:09:28 +0800 Subject: [PATCH] 题目练习 --- src/main/resources/mapper/QuestionMapper.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/QuestionMapper.xml b/src/main/resources/mapper/QuestionMapper.xml index b5d066c..7cdd3b5 100644 --- a/src/main/resources/mapper/QuestionMapper.xml +++ b/src/main/resources/mapper/QuestionMapper.xml @@ -312,4 +312,23 @@ order by a.create_time </select> + <select id="selectContentById" resultType="com.mindskip.xzs.domain.vo.QuestionVO"> + SELECT + tq.id, + tq.question_type as questionType, + tq.difficult, + ttc.content as contentJson + FROM + t_question tq + INNER JOIN t_text_content ttc ON tq.info_text_content_id = ttc.id AND tq.id = #{id} + </select> + + <select id="getAnswer" resultType="string"> + SELECT + ttc.content + FROM + t_question tq + INNER JOIN t_text_content ttc ON tq.info_text_content_id = ttc.id AND tq.id = #{id} AND tq.deleted = 0 + </select> + </mapper> -- Gitblit v1.8.0