|
@@ -68,14 +68,12 @@
|
|
|
<!-- 分页查询 -->
|
|
|
<select id="queryPage" resultMap="SysRole" parameterType="map">
|
|
|
SELECT * FROM sys_role WHERE del_flag_ = 0
|
|
|
- <where>
|
|
|
<if test="search != null and search != ''">
|
|
|
and role_name_ like CONCAT('%',#{search},'%')
|
|
|
</if>
|
|
|
<if test="isEnable != null">
|
|
|
and is_enable_ = #{isEnable}
|
|
|
</if>
|
|
|
- </where>
|
|
|
ORDER BY update_time_ DESC
|
|
|
<include refid="global.limit"/>
|
|
|
</select>
|
|
@@ -83,14 +81,12 @@
|
|
|
<!-- 查询当前表的总记录数 -->
|
|
|
<select id="queryCount" resultType="int">
|
|
|
SELECT COUNT(*) FROM sys_role WHERE del_flag_ = 0
|
|
|
- <where>
|
|
|
<if test="search != null and search != ''">
|
|
|
and role_name_ like CONCAT('%',#{search},'%')
|
|
|
</if>
|
|
|
<if test="isEnable != null">
|
|
|
and is_enable_ = #{isEnable}
|
|
|
</if>
|
|
|
- </where>
|
|
|
</select>
|
|
|
|
|
|
<select id="findRoleByUserId" resultMap="SysRole">
|