提交 74bb2844 编写于 作者: hebao@lab.ibiz5.com's avatar hebao@lab.ibiz5.com

属性模型bug修复

上级 7babb601
...@@ -33,7 +33,7 @@ public class FieldModel { ...@@ -33,7 +33,7 @@ public class FieldModel {
@JSONField(serialize = false) @JSONField(serialize = false)
public String getColumnExp() public String getColumnExp()
{ {
if(1==field.getPhysicalField()) if(field.getPhysicalField()!=null && 1==field.getPhysicalField())
{ {
return columnName+" as \""+columnName.toUpperCase()+"\""; return columnName+" as \""+columnName.toUpperCase()+"\"";
} }
...@@ -48,14 +48,14 @@ public class FieldModel { ...@@ -48,14 +48,14 @@ public class FieldModel {
@JSONField(serialize = false) @JSONField(serialize = false)
public boolean isPhysicalField() public boolean isPhysicalField()
{ {
return 1==this.getField().getPhysicalField(); return this.getField().getPhysicalField()!=null && 1==this.getField().getPhysicalField();
} }
@JsonIgnore @JsonIgnore
@JSONField(serialize = false) @JSONField(serialize = false)
public boolean isKeyField() public boolean isKeyField()
{ {
return 1==this.getField().getKeyField(); return this.getField().getKeyField()!=null && 1==this.getField().getKeyField();
} }
@JsonIgnore @JsonIgnore
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册