This commit is contained in:
admin 2021-03-17 18:08:53 +08:00
parent b27fefd4dd
commit 2e6ac881b4
2 changed files with 4 additions and 5 deletions

View File

@ -5,7 +5,7 @@
* [演示示例](https://gitee.com/best_handsome/mybatis-plus-join-demo) * [演示示例](https://gitee.com/best_handsome/mybatis-plus-join-demo)
QQ群:1022221898 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,再引入以上依赖 或者clone代码到本地,执行mvn install,再引入以上依赖
<br> <br>
<br>
2. 添加配置文件 2. 添加配置文件

View File

@ -46,9 +46,9 @@ public interface UserMapper extends BaseMapper<UserDO> {
``` ```
注意: 注意:
官方的自定义sql是ew.customSqlSegment,不带括号,是属性 官方的自定义sql是ew.customSqlSegment,不带括号,会调用getCustomSqlSegment方法
带别名的是 ew.customSqlSegment("t"),带括号,是方法 带别名的是 ew.customSqlSegment("t") 带括号,调用的是AliasLambdaQueryWrapper#customSqlSegment(String alias)
括号中的别名必须带双引号 括号中的别名必须带双引号
使用wrapper: 使用wrapper: