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

[功能改进]: 描述 @TableField中的update能否在insert中生效 #6510

Open
3 tasks done
5433zzz opened this issue Sep 23, 2024 · 0 comments
Open
3 tasks done

Comments

@5433zzz
Copy link

5433zzz commented Sep 23, 2024

确认

  • 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题

功能改进

现在 @TableField中的update只能在更新时生效,能否改成根据fill = FieldFill.INSERT 在新增数据时也有效果。
现在的需求中,新增时需要有创建时间,修改数据时需要有自动更新时间。
@TableField(value = "CREATED_TIME",fill = FieldFill.INSERT,update = "sysdate")
@TableField(value = "UPDATED_TIME",fill = FieldFill.INSERT_UPDATE,update = "sysdate")

参考资料

No response

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