We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.5.3.1
update( Wrappers.lambdaUpdate(TestTabEntity.class) .ge(TestTabEntity::getId,83) .le(TestTabEntity::getId,90) .set(TestTabEntity::getUuid,"555") ); 根据条件更新 修改的新值为null 旧值正确
update( Wrappers.lambdaUpdate(TestTabEntity.class) .ge(TestTabEntity::getId,83) .le(TestTabEntity::getId,90) .set(TestTabEntity::getUuid,"555") );
{ "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 }
The text was updated successfully, but these errors were encountered:
字段类型对得上吗?uuid是字符串类型?
Sorry, something went wrong.
字段类型对得上,uuid是varchar
lambda有关吗?我也是测试 新值输出null https://gitee.com/baomidou/mybatis-plus/issues/I7VTVV
#6430
No branches or pull requests
当前使用版本(必填,否则不予处理)
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 }
The text was updated successfully, but these errors were encountered: