mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
!474 update docs/zh/base/add-delete-update.md.
Merge pull request !474 from codingdragon/N/A
This commit is contained in:
commit
d7b20a7add
@ -189,7 +189,7 @@ account.setUserName("Michael");
|
||||
|
||||
// 通过 UpdateWrapper 操作 account 数据
|
||||
UpdateWrapper wrapper = UpdateWrapper.of(account);
|
||||
wrapper.set(ACCOUNT.AGE, ACCOUNT.AGE.add(1))
|
||||
wrapper.set(ACCOUNT.AGE, ACCOUNT.AGE.add(1));
|
||||
|
||||
accountMapper.update(account);
|
||||
```
|
||||
@ -211,7 +211,7 @@ account.setUserName("Michael");
|
||||
|
||||
// 通过 UpdateWrapper 操作 account 数据
|
||||
UpdateWrapper wrapper = UpdateWrapper.of(account);
|
||||
wrapper.set(ACCOUNT.AGE, select().from(...))
|
||||
wrapper.set(ACCOUNT.AGE, select().from(...));
|
||||
|
||||
accountMapper.update(account);
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user