xml中写法
<resultMap id="deptGradeListMap" type="java.util.Map">
<result column="id" property="id" jdbcType="VARCHAR" />
<result column="userId" property="userId" jdbcType="VARCHAR" />
<result column="userName" property="userName" jdbcType="VARCHAR" />
<collection property="studyDeptList" javaType="list" ofType="java.util.Map">
<result column="studyDeptNo" property="studyDeptNo" jdbcType="VARCHAR" />
<result column="studyDeptName" property="studyDeptName" jdbcType="VARCHAR" />
<collection property="gradeInfoList" javaType="list" ofType="java.util.Map">
<result column="gradeNo" property="gradeNo"
mybatise 中 返回collection写法 可层层嵌套
最新推荐文章于 2023-09-01 09:25:17 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)