提交 9cdecbfa 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 c91f13a9
......@@ -129,7 +129,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaDataSet> metadataset;
private List<cn.ibizlab.core.lite.domain.MetaDataSet> dataSets;
/**
* 属性
......@@ -137,7 +137,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaField> metafield;
private List<cn.ibizlab.core.lite.domain.MetaField> fields;
/**
* 实体关系
......@@ -145,7 +145,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaRelationship> metarelationship;
private List<cn.ibizlab.core.lite.domain.MetaRelationship> parentEntitys;
/**
* 实体关系
......@@ -153,7 +153,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private List<cn.ibizlab.core.lite.domain.MetaRelationship> metarelationship;
private List<cn.ibizlab.core.lite.domain.MetaRelationship> subEntitys;
/**
......
......@@ -72,10 +72,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
fillParentData(et);
if(!this.retBool(this.baseMapper.insert(et)))
return false;
metadatasetService.saveByEntityId(et.getEntityId(),et.getMetadataset());
metafieldService.saveByEntityId(et.getEntityId(),et.getMetafield());
metarelationshipService.saveByEntityId(et.getEntityId(),et.getMetarelationship());
metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getMetarelationship());
metadatasetService.saveByEntityId(et.getEntityId(),et.getDataSets());
metafieldService.saveByEntityId(et.getEntityId(),et.getFields());
metarelationshipService.saveByEntityId(et.getEntityId(),et.getParentEntitys());
metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getSubEntitys());
CachedBeanCopier.copy(get(et.getEntityId()),et);
return true;
}
......@@ -93,10 +93,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
fillParentData(et);
if(!update(et,(Wrapper) et.getUpdateWrapper(true).eq("entityid",et.getEntityId())))
return false;
metadatasetService.saveByEntityId(et.getEntityId(),et.getMetadataset());
metafieldService.saveByEntityId(et.getEntityId(),et.getMetafield());
metarelationshipService.saveByEntityId(et.getEntityId(),et.getMetarelationship());
metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getMetarelationship());
metadatasetService.saveByEntityId(et.getEntityId(),et.getDataSets());
metafieldService.saveByEntityId(et.getEntityId(),et.getFields());
metarelationshipService.saveByEntityId(et.getEntityId(),et.getParentEntitys());
metarelationshipService.saveByRefEntityId(et.getEntityId(),et.getSubEntitys());
CachedBeanCopier.copy(get(et.getEntityId()),et);
return true;
}
......@@ -134,10 +134,10 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
et.setEntityId(key);
}
else{
et.setMetadataset(metadatasetService.selectByEntityId(key));
et.setMetafield(metafieldService.selectByEntityId(key));
et.setMetarelationship(metarelationshipService.selectByEntityId(key));
et.setMetarelationship(metarelationshipService.selectByRefEntityId(key));
et.setDataSets(metadatasetService.selectByEntityId(key));
et.setFields(metafieldService.selectByEntityId(key));
et.setParentEntitys(metarelationshipService.selectByEntityId(key));
et.setSubEntitys(metarelationshipService.selectByRefEntityId(key));
}
return et;
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册