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

异步任务中方法中存在updateById方法sql打印条目为1,数据库未修改 #6141

Closed
Tojay12 opened this issue May 7, 2024 · 1 comment

Comments

@Tojay12
Copy link

Tojay12 commented May 7, 2024

当前使用版本
v3.5.5
当前环境信息
例如: Java8 + Mysql8

描述bug现象
使用spring 提供的@async注解实现异步
多个异步任务中A方法sql打印更新条数为1,B也如此。
提供问题复现步骤
A、B方法都存在updateById方法,A方法中调用B方法,A方法控制台打印更新成功,数据库未修改成功,B方法修改成功。
提供完整堆栈日志(可选)

提供问题复现工程(可选)
请尽量提供复现工程,减少大家排错的时间.

@miemieYaho
Copy link
Member

回炉重学事务

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