mybatis xml文件实现一对多关系 collection嵌套 sql简单五表联查
权限管理
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mappers.UserMapper">
<!-- 自定义结果类型 -->
<resultMap type="com.entity.User" id="userMap">
<id property="userid" column="userid"/>
<result property="nickname" column="nickname"/>
<result property="password" column="password"/>
<result property="realname" column="realname"/>
</resultMap>
<resultMap type="com.entity.User" id="allMap">
<id property="userid" column="userid"/>
<