You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!-- 声明 XML 文档版本为 1.0,指定字符编码为 UTF - 8, 确保文档能正确处理各种字符 -->
<?xml version="1.0" encoding="UTF-8"?>
<!-- 定义文档类型,引用 MyBatis Mapper 3.0 的 DTD, 用于验证当前 XML 文档是否符合 MyBatis Mapper 规范 -->
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 定义 Mapper 命名空间,将此 XML 映射文件与对应的 Java Mapper 接口关联起来,方便 MyBatis 找到对应的操作方法 -->
<mapper namespace= "com.yf.exam.modules.sys.user.mapper.SysRoleMapper" >
<!-- 通用查询映射结果
定义一个结果映射,将数据库查询结果映射到 Java 实体类 com.yf.exam.modules.sys.user.entity.SysRole
id: 结果映射的唯一标识,可在其他 SQL 语句中引用
type: 指定映射的 Java 实体类的全限定名
-->
<resultMap id= "BaseResultMap" type= "com.yf.exam.modules.sys.user.entity.SysRole" >
<!-- 映射数据库表的主键列到 Java 实体类的属性
column: 数据库表的列名
property: Java 实体类的属性名
-->
<id column= "id" property= "id" />
<!-- 映射数据库表的普通列到 Java 实体类的属性
column: 数据库表的列名
property: Java 实体类的属性名
-->
<result column= "role_name" property= "roleName" />
</resultMap>
<!-- 通用查询结果列
定义一段可复用的 SQL 片段,包含常用的查询列
id: SQL 片段的唯一标识,可在其他 SQL 语句中通过 <include> 标签引用
-->
<sql id= "Base_Column_List" >
`id`,`role_name`
</sql>
</mapper>