SystemRoleDAO.xml 669 Bytes
<?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.yiboshi.science.dao.SystemRoleDAO">
    <sql id="allColumns">
        t.id as id, t.name as name, t.role_level as roleLevel
    </sql>
    <select id="getListByPage" resultType="com.yiboshi.science.param.dto.SystemRoleDTO">
        SELECT * FROM system_role
        <where>
            ${ew.sqlSegment}
        </where>
    </select>
    <select id="getMaxRoleId"  resultType="java.lang.Integer">
        SELECT max(role_id) role_id from system_role
    </select>
</mapper>