-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getLocalPage相关问题 #771
Comments
看了下是不是可以开放setLocalPage方法到PageHepler里就能手动避开了 |
如果用异步(另一个线程)去查询数据权限就没问题.. |
你的切面是针对DAO的吗? |
就是那个doTableFilter的方法,针对所有查询SQL,会去进来拼接字段(类似MP租户的用法),我现在处理好了,修改了你的源码,我觉得还是把setLocalPage开到public就好了 |
个人认为不应该为了这个事情,就把数据权限单独开线程处理,是很浪费性能的一个事情。事实上我只需要在数据权限最上方判断getLocalPage是否有分页有的话clear掉,最后添加finally把page通过setLocalPage塞回去就能避开了。所以开放setLocalPage方法到public是能很大程度上解决这个问题,而不是再开一个线程 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
异常模板
使用环境
SQL 解析错误
分页参数
原 SQL
期望的结果:
完整异常信息
其他类型的错误
功能建议
详细说明,尽可能提供(伪)代码示例。
问题排查出来了,在执行SQL的时候,想要执行一次切面进行数据权限的SQL拼接,但是数据权限里本身存在SQL查询会把pageHelper用了,然后就被clear了,getLocalPage就null了。这个有什么办法控制不自动clear吗。。。
The text was updated successfully, but these errors were encountered: