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

seata2.0如何使用@BusinessActionContextParameter传入对象实体并使用BusinessActionContext进行获取? #6454

Closed
hhf19906 opened this issue Mar 29, 2024 · 3 comments · May be fixed by #6475

Comments

@hhf19906
Copy link

@TwoPhaseBusinessAction(name = "decrease", commitMethod = "confirm", rollbackMethod = "cancel",useTCCFence = false)
String decrease( @BusinessActionContextParameter("inventoryDTO") InventoryDTO inventoryDTO);

InventoryDTO inventoryDTO = (InventoryDTO) ctx.getActionContext("inventoryDTO");
这样子获取到为空

@slievrly
Copy link
Member

slievrly commented Apr 6, 2024

Is the annotation mentioned above on the interface class or the implementation class?

@hhf19906
Copy link
Author

hhf19906 commented Apr 6, 2024 via email

@funky-eyes
Copy link
Contributor

Please use it in the implementation class

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