Browse Source

根据条件分页查询角色数据修改

gao.qiang 1 year ago
parent
commit
7b925aa10f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      base-system/src/main/resources/mapper/system/SysRoleMapper.xml

+ 3 - 0
base-system/src/main/resources/mapper/system/SysRoleMapper.xml

@@ -112,6 +112,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			<if test="status != null and status != 0">
 				and r.status=#{status}
 			</if>
+			<if test="status == null || status == ''">
+				AND r.status = '1'
+			</if>
 			<if test="!dsFlay">
 				and
 				<trim prefix="(" prefixOverrides="or" suffix=")">