如何实现审计字段禁止更新
#1710
Replies: 1 comment 1 reply
-
建议在上层业务上处理 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
比如说实体 A,存在字段 a b c d,其中 b 字段数据更新时需要审核后才能发布。
我的想法是 Aop.AuditValue 时检查 b 是否存在,存在则记录到日志,b 更新取消。
但是好像实现不了,因为 Aop.AuditValue 没有取消字段更新功能,只能赋值新值。
不知道是否有其他解决方案可以实现呢?
Beta Was this translation helpful? Give feedback.
All reactions