Ver código fonte

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

gao.qiang 1 ano atrás
pai
commit
7b925aa10f

+ 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=")">