This commit is contained in:
zhuoda
2020-01-11 09:10:29 +08:00
parent e55e1b2f33
commit 215556f73a
608 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
<?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.gangquan360.smartadmin.module.role.basic.RoleDao">
<resultMap id="RoleEntity"
type="com.gangquan360.smartadmin.module.role.basic.domain.entity.RoleEntity"></resultMap>
<sql id="baseSql">
r.id,
r.role_name,
r.remark,
r.update_time,
r.create_time
</sql>
<select id="getByRoleName" resultMap="RoleEntity">
SELECT
<include refid="baseSql"></include>
FROM
t_role r
WHERE
r.role_name = #{roleName}
</select>
</mapper>