Comments (6)
看了下是不是可以开放setLocalPage方法到PageHepler里就能手动避开了
from mybatis-pagehelper.
如果用异步(另一个线程)去查询数据权限就没问题..
from mybatis-pagehelper.
你的切面是针对DAO的吗?
from mybatis-pagehelper.
你的切面是针对DAO的吗?
就是那个doTableFilter的方法,针对所有查询SQL,会去进来拼接字段(类似MP租户的用法),我现在处理好了,修改了你的源码,我觉得还是把setLocalPage开到public就好了
from mybatis-pagehelper.
如果用异步(另一个线程)去查询数据权限就没问题..
个人认为不应该为了这个事情,就把数据权限单独开线程处理,是很浪费性能的一个事情。事实上我只需要在数据权限最上方判断getLocalPage是否有分页有的话clear掉,最后添加finally把page通过setLocalPage塞回去就能避开了。所以开放setLocalPage方法到public是能很大程度上解决这个问题,而不是再开一个线程
from mybatis-pagehelper.
from mybatis-pagehelper.
Related Issues (20)
- PageInfo 里的EMPTY属性和emptyPageInfo() 方法返回的对象不正确 HOT 1
- 可否升级jsqlparse到4.7版本 HOT 1
- 指定排序setOrderBy,里面的方法强制检查sql注入,无法使用单引号 HOT 7
- 未使用Page分页,但项目中有引入PageHelper插件,却自动判断添加了LIMIT? HOT 2
- 多数据源yml文件配置autoRuntimeDialect:true不生效 需要带上引号
- 添加注解避免不安全的分页 HOT 1
- 【功能请求】自定义 count sql 获取 PageInfo 对象请求 HOT 2
- 线上环境升级到6.1.0,服务器CPU直接99%以上,下不来,接口全部无响应 HOT 2
- mybatis自定义拦截器修改sql后执行空指针 HOT 1
- 这个参数根本没用pagehelper.auto-dialect=false,代码里一直都是true,无法控制 HOT 4
- 多数据库方言就有问题,假如我第一次使用了mysql,然后使用sqlserver查询就还是用的limit分页;代码逻辑有问题具体看详情 HOT 9
- Springboot3版本supportMethodsArguments参数失效 HOT 2
- NoClassDefFoundError: net/sf/jsqlparser/statement/select/ParenthesedSelect HOT 1
- 开启asyncCount 时,打印的sql语句不全 HOT 2
- JSqlParser4.8 HOT 1
- 如何兼容MybatisPlus 3.5.5 和 PageHelper 2.1.0 ? HOT 7
- make PageInfo implement Collection, and then can use it as a List directly HOT 1
- 开启异步count支持后,不兼容Mybatis-Plus的多租户插件 HOT 4
- springboot3.2.2引入pageHelper5.3.2执行分页方法报类型转换异常。分页不生效 HOT 1
- 开发者福利,尽快尝试领取!StarkNet针对TOP 5K进行空投!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybatis-pagehelper.