| | |
| | | <result property="optionNumber" column="option_number" /> |
| | | <result property="mandatoryFlag" column="mandatory_flag" /> |
| | | <result property="attachment" column="attachment" /> |
| | | <result property="optionNumberMin" column="option_number_min" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | <result property="selected" column="selected" /> |
| | | <result property="articleId" column="article_id" /> |
| | | <result property="optionNumber" column="option_number" /> |
| | | <result property="optionNumberMin" column="option_number_min" /> |
| | | <result property="mandatoryFlag" column="mandatory_flag" /> |
| | | <result property="attachment" column="attachment" /> |
| | | <collection property="children" column="id" javaType="list" ofType="org.springblade.modules.discuss.dto.TopicsDTO" select="selectStlCount"> |
| | |
| | | selected, |
| | | article_id, |
| | | option_number, |
| | | option_number_min, |
| | | mandatory_flag, |
| | | attachment |
| | | from |
| | |
| | | jt.article_id, |
| | | jt.LEVEL, |
| | | jt.option_number, |
| | | jt.option_number_min, |
| | | jt.mandatory_flag, |
| | | jt.attachment, |
| | | ( SELECT |
| | |
| | | LEFT JOIN jczz_topics jts ON jts.id = jut.topics_id |
| | | WHERE |
| | | jut.article_id = jt.article_id |
| | | AND jts.parent_id = jt.id AND jut.user_id = #{userId} |
| | | AND jts.parent_id = jt.id |
| | | <if test="householdId != null "> AND jut.household_id = #{householdId}</if> |
| | | AND jut.house_code = #{houseCode} |
| | | limit 1 |
| | | ) selected |
| | | FROM |