mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
update docs/zh/base/batch.md.
将批量操作文档中UpdateChina修改为UpdateChain Signed-off-by: 数据小王子 <dataprince@163.com>
This commit is contained in:
parent
e1af38ac6a
commit
039cfa8576
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user