diff --git a/docs/zh/base/parts/base-mapper-update-methods.md b/docs/zh/base/parts/base-mapper-update-methods.md index efcff5e1..1d7f3217 100644 --- a/docs/zh/base/parts/base-mapper-update-methods.md +++ b/docs/zh/base/parts/base-mapper-update-methods.md @@ -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 ... ` 的场景。~ diff --git a/docs/zh/core/multi-datasource.md b/docs/zh/core/multi-datasource.md index 48b13704..77beaac3 100644 --- a/docs/zh/core/multi-datasource.md +++ b/docs/zh/core/multi-datasource.md @@ -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` ,那么代码如下: