mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
doc: update doc
This commit is contained in:
parent
49c873ede2
commit
52bb04ce3f
@ -111,7 +111,7 @@ Account account = UpdateEntity.of(Account.class, 100);
|
|||||||
account.setUserName(null);
|
account.setUserName(null);
|
||||||
|
|
||||||
// 通过 UpdateWrapper 操作 account 数据
|
// 通过 UpdateWrapper 操作 account 数据
|
||||||
UpdateWrapper wrapper = (UpdateWrapper)account;
|
UpdateWrapper wrapper = UpdateWrapper.of(account);
|
||||||
wrapper.setRaw("age", "age + 1")
|
wrapper.setRaw("age", "age + 1")
|
||||||
|
|
||||||
accountMapper.update(account);
|
accountMapper.update(account);
|
||||||
@ -135,7 +135,7 @@ Account account = UpdateEntity.of(Account.class, 100);
|
|||||||
account.setUserName("Michael");
|
account.setUserName("Michael");
|
||||||
|
|
||||||
// 通过 UpdateWrapper 操作 account 数据
|
// 通过 UpdateWrapper 操作 account 数据
|
||||||
UpdateWrapper wrapper = (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);
|
accountMapper.update(account);
|
||||||
@ -157,7 +157,7 @@ Account account = UpdateEntity.of(Account.class, 100);
|
|||||||
account.setUserName("Michael");
|
account.setUserName("Michael");
|
||||||
|
|
||||||
// 通过 UpdateWrapper 操作 account 数据
|
// 通过 UpdateWrapper 操作 account 数据
|
||||||
UpdateWrapper wrapper = (UpdateWrapper)account;
|
UpdateWrapper wrapper = UpdateWrapper.of(account);
|
||||||
wrapper.set(ACCOUNT.AGE, select().from(...))
|
wrapper.set(ACCOUNT.AGE, select().from(...))
|
||||||
|
|
||||||
accountMapper.update(account);
|
accountMapper.update(account);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user