Skip to content
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

支持mybatis @SelectKey注解 #217

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

penghu2
Copy link

@penghu2 penghu2 commented Aug 28, 2023

解决的问题:mybatis insert操作,@SelectKey(或者xml配置) 场景下需要回写主键id,当前插件不支持,导致回放后续流程失败
方案:

  1. 通过mappedStatement.getKeyGenerator()拿到回填信息进行回填;
  2. 将录制的id反射回填到对应的keyProperty属性上

@ShiningXu
Copy link

大佬你好,我看你的readme里面写已经支持了WebFlux,但是代码里没有这部分,我们最近也在支持响应式,能否借鉴一下思路?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants