一张栏目表t_column_video
xml:
<resultMap type="java.util.HashMap" id="definedMap">
<id column="code" property="code" jdbcType="VARCHAR" />
<result column="columnname" property="columnname" jdbcType="VARCHAR" />
<result column="columnname" property="code" jdbcType="VARCHAR" />
select code ,columnname from t_column_video
mapper
List<Map<String,Object>> find();
文章来源: mybatis 嵌套