From e31eec892bf35279c78cc5137f46ea7d9e329527 Mon Sep 17 00:00:00 2001 From: lhzsdnu <2383376138@qq.com> Date: Sat, 29 Jul 2023 09:02:16 +0000 Subject: [PATCH 1/2] update docs/zh/core/multi-datasource.md. Signed-off-by: lhzsdnu <2383376138@qq.com> --- docs/zh/core/multi-datasource.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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` ,那么代码如下: From 0e087bbe1d29146bb585331e2348174415e8282a Mon Sep 17 00:00:00 2001 From: lhzsdnu <2383376138@qq.com> Date: Sat, 29 Jul 2023 10:08:31 +0000 Subject: [PATCH 2/2] update docs/zh/base/parts/base-mapper-update-methods.md. Signed-off-by: lhzsdnu <2383376138@qq.com> --- docs/zh/base/parts/base-mapper-update-methods.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ... ` 的场景。~