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

批量插入的时候.过滤掉ID了 #872

Open
29394670 opened this issue Oct 25, 2022 · 3 comments
Open

批量插入的时候.过滤掉ID了 #872

29394670 opened this issue Oct 25, 2022 · 3 comments
Labels

Comments

@29394670
Copy link

image

这个地方的skipId是不是应该为false.如果按代码中这样操作的话..指定主键的无法插入数据库

@abel533 abel533 added the bug label Oct 25, 2022
@abel533
Copy link
Owner

abel533 commented Oct 25, 2022

这里可能需要根据方法上的注解判定是否为自增来skip。

@29394670
Copy link
Author

昨天刚好要用,结果发现无法插入.被迫手动自己定义了一个mapper 嘿嘿.

@abel533
Copy link
Owner

abel533 commented Oct 25, 2022

看差了....我以为是mybatis-mapper。。。在 tk.mapper中,批量插入有两种类型的实现,一种自增,一种不是自增,你搜搜另一个。

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

No branches or pull requests

2 participants