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
14a0448b6a
commit
5438af5e5c
@ -166,7 +166,7 @@ public class MPJTableFieldInfo {
|
|||||||
.filter(i -> i.getColumn().equals(bindName))
|
.filter(i -> i.getColumn().equals(bindName))
|
||||||
.map(TableFieldInfo::getField).findFirst().orElse(null);
|
.map(TableFieldInfo::getField).findFirst().orElse(null);
|
||||||
if (field == null && bindName.equals(info.getKeyColumn())) {
|
if (field == null && bindName.equals(info.getKeyColumn())) {
|
||||||
this.bindField = ReflectionKit.getFieldList(joinClass).stream().filter(f ->
|
field = ReflectionKit.getFieldList(joinClass).stream().filter(f ->
|
||||||
f.getName().equals(info.getKeyProperty())).findFirst().orElse(null);
|
f.getName().equals(info.getKeyProperty())).findFirst().orElse(null);
|
||||||
}
|
}
|
||||||
if (field == null) {
|
if (field == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user