ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataScope.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
ruoyi-common/src/main/java/com/ruoyi/common/annotation/DataScope.java
ÎļþÒÑɾ³ý ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
ÎļþÒÑɾ³ý ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -42,10 +42,6 @@ <if test="status != null and status != ''"> AND status = #{status} </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="params.dataScope != null and params.dataScope != ''">--> <!-- AND ( ${params.dataScope} )--> <!-- </if>--> order by d.parent_id, d.order_num </select> ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -60,10 +60,6 @@ <if test="role.params.endTime != null and role.params.endTime != ''"><!-- ç»ææ¶é´æ£ç´¢ --> and date_format(r.create_time,'%y%m%d') <= date_format(#{role.params.endTime},'%y%m%d') </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="role.params.dataScope != null and role.params.dataScope != ''">--> <!-- AND ( ${role.params.dataScope} )--> <!-- </if>--> order by r.role_sort </select> @@ -88,10 +84,6 @@ <if test="params.endTime != null and params.endTime != ''"><!-- ç»ææ¶é´æ£ç´¢ --> and date_format(r.create_time,'%y%m%d') <= date_format(#{params.endTime},'%y%m%d') </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="params.dataScope != null and params.dataScope != ''">--> <!-- AND ( ${params.dataScope} )--> <!-- </if>--> order by r.role_sort </select> ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -108,10 +108,6 @@ AND (u.dept_id = #{user.deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{user.deptId}, ancestors) )) </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="user.params.dataScope != null and user.params.dataScope != ''">--> <!-- AND ( ${user.params.dataScope} )--> <!-- </if>--> </select> <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult"> @@ -142,10 +138,6 @@ AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="params.dataScope != null and params.dataScope != ''">--> <!-- AND ( ${params.dataScope} )--> <!-- </if>--> </select> <select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult"> @@ -161,10 +153,6 @@ <if test="user.phonenumber != null and user.phonenumber != ''"> AND u.phonenumber like concat('%', #{user.phonenumber}, '%') </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="user.params.dataScope != null and user.params.dataScope != ''">--> <!-- AND ( ${user.params.dataScope} )--> <!-- </if>--> </select> <select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult"> @@ -181,10 +169,6 @@ <if test="user.phonenumber != null and user.phonenumber != ''"> AND u.phonenumber like concat('%', #{user.phonenumber}, '%') </if> <!-- <!– æ°æ®èå´è¿æ»¤ –>--> <!-- <if test="user.params.dataScope != null and user.params.dataScope != ''">--> <!-- AND ( ${user.params.dataScope} )--> <!-- </if>--> </select> <select id="selectUserByUserName" parameterType="String" resultMap="SysUserResult">