mybatis-dynamic-sql icon indicating copy to clipboard operation
mybatis-dynamic-sql copied to clipboard

[Feature Request]: BeforeExecute, AfterExecute hook support

Open kcmvp opened this issue 3 years ago • 2 comments

Firstly thank you very much to build such useful framework. I am using it in my project. I have a use case for data privilege, for the same statement different user role would take different data privilege strategies. eg:

select a, b, c from ta

if current use a normal user then the return result of column c should be maksed as "xxxx", in our project (sass, multi-tenancy), there are many cases.

if the framework supports hooks, then we can handle the logic in one place. right now we mix such logic every where. it's not a good practice.

thank you!

kcmvp avatar Apr 19 '22 08:04 kcmvp