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(value = "update_time", fill = FieldFill.INSERT_UPDATE)在执行removeById方法是自动填充数据失效 #6617

Open
3 tasks done
H-Knight opened this issue Nov 29, 2024 · 1 comment

Comments

@H-Knight
Copy link

确认

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

当前程序版本

3.5.7

问题描述

我的update_time字段是定义在父类中,类型是Date,通过removeById进行逻辑删除操作时我的update_time会被设置成null,MyMetaObjectHandler和@TableField都试过,都自动填充值失败了

详细堆栈日志

2024-11-29 16:01:02.029 DEBUG 91029 --- [io-8174-exec-10] c.d.b.user.mapper.UserMapper.deleteById  : ==>  Preparing: UPDATE tbl_user SET update_time=?, deleted=1 WHERE pkid=? AND deleted=0
2024-11-29 16:01:02.035 DEBUG 91029 --- [io-8174-exec-10] c.d.b.user.mapper.UserMapper.deleteById  : ==> Parameters: null, e9b9f99f4f4a6e0171593ab376a20b81(String)
2024-11-29 16:01:02.042 DEBUG 91029 --- [io-8174-exec-10] c.d.b.user.mapper.UserMapper.deleteById  : <==    Updates: 1
@miemieYaho
Copy link
Member

git形式给出复现demo

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

2 participants