GithubHelp home page GithubHelp logo

Comments (6)

BeyondTheBlade avatar BeyondTheBlade commented on July 30, 2024

看了下是不是可以开放setLocalPage方法到PageHepler里就能手动避开了

from mybatis-pagehelper.

abel533 avatar abel533 commented on July 30, 2024

如果用异步(另一个线程)去查询数据权限就没问题..

from mybatis-pagehelper.

abel533 avatar abel533 commented on July 30, 2024

你的切面是针对DAO的吗?

from mybatis-pagehelper.

BeyondTheBlade avatar BeyondTheBlade commented on July 30, 2024

你的切面是针对DAO的吗?

就是那个doTableFilter的方法,针对所有查询SQL,会去进来拼接字段(类似MP租户的用法),我现在处理好了,修改了你的源码,我觉得还是把setLocalPage开到public就好了

from mybatis-pagehelper.

BeyondTheBlade avatar BeyondTheBlade commented on July 30, 2024

如果用异步(另一个线程)去查询数据权限就没问题..

个人认为不应该为了这个事情,就把数据权限单独开线程处理,是很浪费性能的一个事情。事实上我只需要在数据权限最上方判断getLocalPage是否有分页有的话clear掉,最后添加finally把page通过setLocalPage塞回去就能避开了。所以开放setLocalPage方法到public是能很大程度上解决这个问题,而不是再开一个线程

from mybatis-pagehelper.

pagehelper avatar pagehelper commented on July 30, 2024

放开 setLocalPage,支持 #771

from mybatis-pagehelper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.