mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
fix: AbstractRelation NPE
This commit is contained in:
parent
0e27cd248f
commit
af9fa76b2e
@ -98,7 +98,8 @@ abstract class AbstractRelation<SelfEntity> {
|
||||
this.valueField = valueField;
|
||||
this.onlyQueryValueField = StringUtil.isNotBlank(valueField);
|
||||
|
||||
this.conditionColumn = column(targetTable, targetTableInfo.getColumnByProperty(this.targetField.getName()));
|
||||
this.conditionColumn = targetTableInfo == null ? column(targetTable, StringUtil.camelToUnderline(this.targetField.getName()))
|
||||
: column(targetTable, targetTableInfo.getColumnByProperty(this.targetField.getName()));
|
||||
|
||||
if (onlyQueryValueField) {
|
||||
//仅绑定字段时只需要查询关联列和该字段列即可
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user