From 2e6ac881b45e1e5919fb922c1f69af01b3b519db Mon Sep 17 00:00:00 2001 From: admin <570810310@qq.com> Date: Wed, 17 Mar 2021 18:08:53 +0800 Subject: [PATCH] readme --- README.md | 3 +-- .../com/github/yulichang/common/support/alias/README.md | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 767af88..9734c65 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ * [演示示例](https://gitee.com/best_handsome/mybatis-plus-join-demo) QQ群:1022221898 -[扫码加微信群](https://gitee.com/best_handsome/mybatis-plus-join/blob/master/wx.png) +[扫码进微信群](https://gitee.com/best_handsome/mybatis-plus-join/blob/master/wx.png) ## 使用方法 @@ -28,7 +28,6 @@ QQ群:1022221898 ``` 或者clone代码到本地,执行mvn install,再引入以上依赖
-
2. 添加配置文件 diff --git a/src/main/java/com/github/yulichang/common/support/alias/README.md b/src/main/java/com/github/yulichang/common/support/alias/README.md index bd809e2..30ba957 100644 --- a/src/main/java/com/github/yulichang/common/support/alias/README.md +++ b/src/main/java/com/github/yulichang/common/support/alias/README.md @@ -46,9 +46,9 @@ public interface UserMapper extends BaseMapper { ``` 注意: -官方的自定义sql是ew.customSqlSegment,不带括号,是属性 -带别名的是 ew.customSqlSegment("t"),带括号,是方法 -括号中的别名必须带双引号 +官方的自定义sql是ew.customSqlSegment,不带括号,会调用getCustomSqlSegment方法 +带别名的是 ew.customSqlSegment("t") 带括号,调用的是AliasLambdaQueryWrapper#customSqlSegment(String alias) +括号中的别名必须带双引号 使用wrapper: