This commit is contained in:
2022-12-15 18:27:49 +08:00
parent 533374bd95
commit fada0fb994
2 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ package org.nl.system.service.role.dao.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.nl.system.service.role.dao.SysRole; import org.nl.system.service.role.dao.SysRole;
import java.util.List;
/** /**
* <p> * <p>
* 角色表 Mapper 接口 * 角色表 Mapper 接口
@@ -12,5 +14,5 @@ import org.nl.system.service.role.dao.SysRole;
* @since 2022-12-15 * @since 2022-12-15
*/ */
public interface SysRoleMapper extends BaseMapper<SysRole> { public interface SysRoleMapper extends BaseMapper<SysRole> {
List<SysRole> list();
} }

View File

@@ -2,4 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.nl.system.service.role.dao.mapper.SysRoleMapper"> <mapper namespace="org.nl.system.service.role.dao.mapper.SysRoleMapper">
<select id="list" resultType="org.nl.system.service.role.dao.SysRole">
SELECT * FROM sys_role
</select>
</mapper> </mapper>