1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| <?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="cn.besteam.modules.system.mapper.SysRoleMapper">
|
| <!-- 查询角色列表 -->
| <select id="listRole" resultType="cn.besteam.modules.system.vo.SysRoleVO">
| SELECT
| id,
| role_name,
| role_code,
| description,
| type,
| create_time,
| update_time,
| logo
| FROM
| sys_role
| <where>
| <if test="type!=null and type!=-1">
| and type = #{type}
| </if>
| <if test="roleName != null and roleName != ''">
| and role_name like concat('%',#{roleName},'%')
| </if>
| </where>
| order by
| type asc,create_time desc
| </select>
| </mapper>
|
|