|
|
@ -6,10 +6,12 @@ |
|
|
|
<id column="topicId" property="topicId"/> |
|
|
|
<result column="description" property="description"/> |
|
|
|
<result column="answersTrue" property="answersTrue"/> |
|
|
|
<result column="sequence" property="sequence"/> |
|
|
|
<collection property="options" ofType="String"> |
|
|
|
<id column="options"/> |
|
|
|
</collection> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<resultMap id="topicByLink" type="com.ccsens.mt.bean.vo.TopicVo$TopicByLink" > |
|
|
|
<id column="topicId" property="topicId"/> |
|
|
|
<result column="description" property="description"/> |
|
|
@ -25,6 +27,7 @@ |
|
|
|
t.id as topicId, |
|
|
|
t.description as description, |
|
|
|
t.answers as answersTrue, |
|
|
|
t.sequence, |
|
|
|
if(o.`option` is null,'' , concat(o.`option` ,':' ,o.contant)) as options |
|
|
|
FROM |
|
|
|
t_mt_topic t LEFT JOIN t_mt_topic_option o on t.id = o.topic_id |
|
|
|