mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
readme
This commit is contained in:
parent
b27fefd4dd
commit
2e6ac881b4
@ -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,再引入以上依赖
|
||||
<br>
|
||||
<br>
|
||||
|
||||
2. 添加配置文件
|
||||
|
||||
|
@ -46,8 +46,8 @@ public interface UserMapper extends BaseMapper<UserDO> {
|
||||
```
|
||||
|
||||
注意:
|
||||
官方的自定义sql是ew.customSqlSegment,不带括号,是属性
|
||||
带别名的是 ew.customSqlSegment("t"),带括号,是方法
|
||||
官方的自定义sql是ew.customSqlSegment,不带括号,会调用getCustomSqlSegment方法
|
||||
带别名的是 ew.customSqlSegment("t") 带括号,调用的是AliasLambdaQueryWrapper#customSqlSegment(String alias)
|
||||
括号中的别名必须带双引号
|
||||
|
||||
使用wrapper:
|
||||
|
Loading…
x
Reference in New Issue
Block a user