fix 主键字段映射错误

This commit is contained in:
yulichang 2021-12-03 23:17:40 +08:00
parent 14a0448b6a
commit 5438af5e5c

View File

@ -166,7 +166,7 @@ public class MPJTableFieldInfo {
.filter(i -> i.getColumn().equals(bindName))
.map(TableFieldInfo::getField).findFirst().orElse(null);
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);
}
if (field == null) {