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

[Feature]: 对象触发器,添加只执行一次的选择 #6945

Closed
daizichuan opened this issue Jun 19, 2024 · 1 comment
Closed

[Feature]: 对象触发器,添加只执行一次的选择 #6945

daizichuan opened this issue Jun 19, 2024 · 1 comment

Comments

@daizichuan
Copy link

Summary 摘要

如需要修改之后更新某个字段,运行时选择为修改记录之后。
通过日志查看发现这个触发器一直被执行

Why should this be worked on? 此需求的应用场景?

如需要修改之后更新某个字段,运行时选择为修改记录之后。
通过日志查看发现这个触发器一直被执行。
服务器占用比较高,应该是一直在循环中。第一次更新字段值,又触发了触发器。而我原始需要是在修改记录之后,只更新一次字段值

@daizichuan
Copy link
Author

已找到解决办法:
ctx.getObject("xxx").update() 修改成
ctx.getObject("xxx").directUpdate()

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

1 participant