mirror of
https://gitee.com/best_handsome/mybatis-plus-join
synced 2025-07-11 00:02:22 +08:00
id
This commit is contained in:
parent
6dd3a1ec3c
commit
2b05832304
@ -200,7 +200,8 @@ public class MPJInterceptor implements Interceptor {
|
||||
} else {
|
||||
// 主键列
|
||||
resultMappings.add(new ResultMapping.Builder(ms.getConfiguration(), i.getTagProperty(),
|
||||
StringUtils.getTargetColumn(i.getColumnName()), i.getKeyType()).build());
|
||||
StringUtils.getTargetColumn(i.getColumnName()), i.getKeyType())
|
||||
.flags(Collections.singletonList(ResultFlag.ID)).build());
|
||||
}
|
||||
}
|
||||
Set<String> columnSet = resultMappings.stream().map(ResultMapping::getColumn).collect(Collectors.toSet());
|
||||
|
Loading…
x
Reference in New Issue
Block a user