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

update 实体后, 如何让对象的updated字段也更新为当前时间, 数据库当然更新了的. #133

Closed
zhyusgethup opened this issue May 23, 2020 · 0 comments

Comments

@zhyusgethup
Copy link

你好! 非常感谢关注我的麻烦.
update和insert方法都需要返回实体给前端, 但是像created, updated这些字段, 他是由数据库自动加入的, 请问有没办法获取数据库自动加入的值, 实在没办法也可以手动注入一个, 目前我用aop 切update, insert等方法. 有没有更合适的方案呢.

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

1 participant