| | |
| | | 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> |