mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
fix
This commit is contained in:
parent
ad1360e3c6
commit
9caf799632
@ -21,6 +21,7 @@ import static java.util.stream.Collectors.joining;
|
||||
*
|
||||
* @author yulichang
|
||||
*/
|
||||
@SuppressWarnings("DuplicatedCode")
|
||||
public abstract class MPJAbstractLambdaWrapper<T, Children extends MPJAbstractLambdaWrapper<T, Children>>
|
||||
extends MPJAbstractWrapper<T, Children> {
|
||||
|
||||
@ -87,6 +88,14 @@ public abstract class MPJAbstractLambdaWrapper<T, Children extends MPJAbstractLa
|
||||
}
|
||||
}
|
||||
//外层select
|
||||
if (Objects.isNull(index)) {
|
||||
if (Objects.equals(clazz, getEntityClass())) {
|
||||
return StringPool.EMPTY;
|
||||
}
|
||||
//正序
|
||||
Table table = tableList.getPositive(clazz);
|
||||
return Objects.isNull(table.index) ? StringPool.EMPTY : table.index;
|
||||
}
|
||||
Table table = tableList.get(clazz, index);
|
||||
if (Objects.nonNull(table.getIndex())) {
|
||||
return table.getIndex();
|
||||
|
Loading…
x
Reference in New Issue
Block a user