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

3.5.7版本,批量操作添加事务 #6254

Open
gofunn opened this issue Jun 13, 2024 · 3 comments
Open

3.5.7版本,批量操作添加事务 #6254

gofunn opened this issue Jun 13, 2024 · 3 comments

Comments

@gofunn
Copy link

gofunn commented Jun 13, 2024

请详细描述需要增加的功能
如题。
批量操作是否应该像之前的方法com.baomidou.mybatisplus.extension.service.impl.ServiceImpl#saveBatch一样,添加事务

@gofunn
Copy link
Author

gofunn commented Jun 13, 2024

其他方法都是ByIds的命名,不知道这个是不是漏掉了。
com.baomidou.mybatisplus.core.mapper.BaseMapper#selectBatchIds(java.util.Collection<? extends java.io.Serializable>)

@gofunn gofunn closed this as completed Jun 13, 2024
@gofunn gofunn reopened this Jun 13, 2024
@gofunn
Copy link
Author

gofunn commented Jun 13, 2024

BaseMapper里没有这个方法,是否会加上?
com.baomidou.mybatisplus.extension.service.IService#page(E)

@nieqiurong
Copy link
Contributor

1.selectBatchIds下个版本改了。
2.事务建议自行管理,BaseMapper不是为了替代Service层。

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

No branches or pull requests

2 participants