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

DataChangeRecorderInnerInterceptor 根据条件更新 修改的新值为null 旧值正确 #5403

Closed
farmer-youngest opened this issue Jun 12, 2023 · 4 comments
Labels

Comments

@farmer-youngest
Copy link

当前使用版本(必填,否则不予处理)

3.5.3.1

该问题是如何引起的?(确定最新版也有问题再提!!!)

update( Wrappers.lambdaUpdate(TestTabEntity.class) .ge(TestTabEntity::getId,83) .le(TestTabEntity::getId,90) .set(TestTabEntity::getUuid,"555") );
根据条件更新 修改的新值为null 旧值正确

重现步骤(如果有就写完整)

报错信息

{ "tableName": "test_tab", "operation": "update", "recordStatus": "true", "changedData": [ { "ID": "83", "UUID": "555->null" }, { "ID": "84", "UUID": "555->null" }, { "ID": "85", "UUID": "555->null" }, { "ID": "86", "UUID": "555->null" }, { "ID": "87", "UUID": "555->null" }, { "ID": "88", "UUID": "555->null" }, { "ID": "89", "UUID": "555->null" }, { "ID": "90", "UUID": "555->null" } ], "cost(ms)": 3071 }

@986510453
Copy link
Member

字段类型对得上吗?uuid是字符串类型?

@farmer-youngest
Copy link
Author

字段类型对得上吗?uuid是字符串类型?

字段类型对得上,uuid是varchar

@lunxian8
Copy link

lambda有关吗?我也是测试 新值输出null https://gitee.com/baomidou/mybatis-plus/issues/I7VTVV

@nieqiurong nieqiurong added the bug label Apr 11, 2024
@nieqiurong
Copy link
Contributor

#6430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants