feat: builder的where map支持传入_and前缀的key&&Comparable的value,以支持aop场景(软删除等)#154
Open
int8259 wants to merge 1 commit intodidi:masterfrom
Open
feat: builder的where map支持传入_and前缀的key&&Comparable的value,以支持aop场景(软删除等)#154int8259 wants to merge 1 commit intodidi:masterfrom
int8259 wants to merge 1 commit intodidi:masterfrom
Conversation
Contributor
|
不好意思回复晚了,这里的描述能更清晰一些吗? 具体的用例是什么 |
Author
|
现在业务系统有两类需求,都涉及到aop场景,本质上都是动态条件 × 固定业务条件 假设动态条件解析后是one_col='a',实际执行的sql: 目前由于builder不能直接通过_and,来拼接,就只能要求都写成select * from table_x 固定业务条件 具体到用例场景,有如下两种: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: builder的where map支持传入_and前缀的key&&Comparable的value,以支持aop场景(软删除等)