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

动态表名实现覆盖不全 #889

Open
lmlx66 opened this issue Aug 24, 2023 · 0 comments
Open

动态表名实现覆盖不全 #889

lmlx66 opened this issue Aug 24, 2023 · 0 comments

Comments

@lmlx66
Copy link

lmlx66 commented Aug 24, 2023

version:tk-mybatis 1.1.5
problem:使用deleteByPrimaryKey,selectByPrimaryKey等方法仅传入id时,未走动态表名。
reason:初步判断为动态表方法需要获取传入对象的getDynamicTableName方法,仅传入id并不存在该方法,故走默认表名。
recommendation:使用mapper泛型获取该方法

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

No branches or pull requests

2 participants