<resultMap id="getListItem" type="com.strcpy_s.bean.VO.QuestionListItem">
<!-- <id property="problemId" column="problemId"/>-->
<!-- <result property="name" column="name"/>-->
<!-- <result property="brief" column="brief"/>-->
<collection property="tags" ofType="java.lang.String" column="problemId" javaType="ArrayList"
select="com.strcpy_s.dao.QuestionTagDao.selectTagsByProblemId"/>
</resultMap>
<select id="selectQuestionItems" resultMap="getListItem">
select questions.problemId as problemId, questions.name as name, questions.brief as brief
from questions
where teacherId=#{teacherId}
</select>
|