!212 doc: update docs

Merge pull request !212 from lhzsdnu/main
This commit is contained in:
Michael Yang 2023-07-29 10:30:41 +00:00 committed by Gitee
commit 1082ab39a8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 9 additions and 9 deletions

View File

@ -6,8 +6,8 @@
- **`updateByCondition(entity, ignoreNulls, whereConditions)`**:根据查询条件来更新数据。
- **`updateByQuery(entity, queryWrapper)`**:根据查询条件来更新数据。
- **`updateByQuery(entity, ignoreNulls, queryWrapper)`**:根据查询条件来更新数据。
- **`updateNumberAddByQuery(fieldName, value, queryWrapper)`**:执行类似 `update table set field = field + 1 where ... `
的场景。
- **`updateNumberAddByQuery(column, value, queryWrapper)`**:执行类似 `update table set field = field + 1 where ... `
的场景。
- **`updateNumberAddByQuery(fn, value, queryWrapper)`**:执行类似 `update table set field = field + 1 where ... ` 的场景。
- ~**`updateNumberAddByQuery(fieldName, value, queryWrapper)`**:执行类似 `update table set field = field + 1 where ... `
的场景。~
- ~**`updateNumberAddByQuery(column, value, queryWrapper)`**:执行类似 `update table set field = field + 1 where ... `
的场景。~
- ~**`updateNumberAddByQuery(fn, value, queryWrapper)`**:执行类似 `update table set field = field + 1 where ... ` 的场景。~

View File

@ -237,10 +237,10 @@ mybatis-flex:
username: root
password: 123456
other:
type: com.your.datasource.type2
url: jdbc:mysql://127.0.0.1:3306/db2
username: root
password: 123456
type: com.your.datasource.type2
url: jdbc:mysql://127.0.0.1:3306/db2
username: root
password: 123456
```
以上配置了三个数据源,分别为:`ds1``ds2``other`,假设我们想负载均衡使用 `ds1``ds2` ,那么代码如下: