jiangping
2024-05-23 8a2a516fb3584cba3d4a0978d89b08ecf9299aa7
最新版本
已修改1个文件
3 ■■■■ 文件已修改
server/system_service/src/main/resources/mappers/SystemDataPermissionMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
server/system_service/src/main/resources/mappers/SystemDataPermissionMapper.xml
@@ -65,9 +65,8 @@
        AND sdp.`TYPE` =  #{dto.type}
      </if>
      <if test="userId != null">
        AND exists (select sr.id from system_user_role sr where sr.role_id=sdp.role_id and sr.user_id=#{userId} and sr.STATUS=0 and sr.deleted=0)
        AND exists (select sr.id from system_user_role sr where sr.role_id=sdp.role_id and sr.user_id=#{userId} and sr.deleted=0)
      </if>
    </where>
    order by role.`TYPE` asc
  </select>
</mapper>