This commit is contained in:
admin 2021-02-24 10:35:11 +08:00
parent 0648f1bb2c
commit bed97d631e
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public class F {
}
/**
* 与S的getColumn一致,个都用,保留一个就行了
* 与S的getColumn一致,个都用,保留一个就行了
*/
public static <T> String getColumn(SFunction<T, ?> fn) {
SerializedLambda lambda = LambdaUtils.resolve(fn);

View File

@ -1,5 +1,5 @@
## 支持lambda的QueryWrapper
[官方自定义sql](https://mp.baomidou.com/guide/wrapper.html#%E4%BD%BF%E7%94%A8-wrapper-%E8%87%AA%E5%AE%9A%E4%B9%89sql)
让QueryWrapper也能使用lambda
单表lambda请使用mybatis-plus提供的LambdaQueryWrapper
本示例主要在连表的情况下使用!

View File

@ -55,7 +55,7 @@ public class S {
}
/**
* 与F的getColumn一致,个都用,保留一个就行了
* 与F的getColumn一致,个都用,保留一个就行了
*/
public static <T> String getColumn(SFunction<T, ?> fn) {
SerializedLambda lambda = LambdaUtils.resolve(fn);