mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
优化
This commit is contained in:
parent
eba38a0184
commit
55b69e7ada
@ -246,8 +246,9 @@ public class MPJInterceptor implements Interceptor {
|
|||||||
this.buildResult(ms, mpjColl.getMybatisLabels(), columnSet, childMapping, columnList);
|
this.buildResult(ms, mpjColl.getMybatisLabels(), columnSet, childMapping, columnList);
|
||||||
}
|
}
|
||||||
String childId = "MPJ_" + mpjColl.getEntityClass().getName() + StringPool.UNDERSCORE + mpjColl.getOfType().getName() +
|
String childId = "MPJ_" + mpjColl.getEntityClass().getName() + StringPool.UNDERSCORE + mpjColl.getOfType().getName() +
|
||||||
StringPool.UNDERSCORE + childMapping.stream().map(i -> (CollectionUtils.isEmpty(i.getFlags()) ?
|
StringPool.UNDERSCORE + childMapping.stream().map(i -> "(" + (CollectionUtils.isEmpty(i.getFlags()) ?
|
||||||
ResultFlag.CONSTRUCTOR : i.getFlags().get(0)) + i.getProperty() + i.getColumn()).collect(Collectors.joining(StringPool.DASH));
|
ResultFlag.CONSTRUCTOR : i.getFlags().get(0)) + "-" + i.getProperty() + "-" + i.getColumn() + ")")
|
||||||
|
.collect(Collectors.joining(StringPool.DASH));
|
||||||
parentMappings.add(new ResultMapping.Builder(ms.getConfiguration(), mpjColl.getProperty())
|
parentMappings.add(new ResultMapping.Builder(ms.getConfiguration(), mpjColl.getProperty())
|
||||||
.javaType(mpjColl.getJavaType())
|
.javaType(mpjColl.getJavaType())
|
||||||
.nestedResultMapId(childId)
|
.nestedResultMapId(childId)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user