update docs/zh/base/batch.md.

将批量操作文档中UpdateChina修改为UpdateChain

Signed-off-by: 数据小王子 <dataprince@163.com>
This commit is contained in:
数据小王子 2023-09-27 06:34:27 +00:00 committed by Gitee
parent e1af38ac6a
commit 039cfa8576
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -80,7 +80,7 @@ List<Account> accounts = ....
Db.executeBatch(accounts, 1000, AccountMapper.class
, (mapper, account) -> {
// ↑↑↑↑↑ 以上的这个 mapper未被使用
UpdateChina.of(account)
UpdateChain.of(account)
.set(Account::getUserName, "张三")
.update();
});
@ -94,7 +94,7 @@ List<Account> accounts = ....
Db.executeBatch(accounts, 1000, AccountMapper.class
, (mapper, account) -> {
UpdateChina.of(mapper) //使用 mapper 参数,才能起到批量执行的效果
UpdateChain.of(mapper) //使用 mapper 参数,才能起到批量执行的效果
.set(Account::getUserName, "张三")
.update();
});