瀏覽代碼

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

gao.qiang 1 年之前
父節點
當前提交
7b925aa10f
共有 1 個文件被更改,包括 3 次插入0 次删除
  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=")">