Skip to content

如何在调用updateById这种方法时自动注入更新时间、更新人 #174

Closed Answered by zuihou
zbh0523 asked this question in 02.提问
Discussion options

You must be logged in to vote

update_time、update_by 的逻辑是 非空时,存储非空的值, 为空时,自动赋值。

所以只需要 cat.setUpdateBy(null) 即可自动赋值

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zbh0523
Comment options

Answer selected by zbh0523
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants