提交 879665d4 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 9cdecbfa
......@@ -112,7 +112,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstDataSource datasource;
private cn.ibizlab.core.lite.domain.DstDataSource dataSource;
/**
*
......
......@@ -225,13 +225,13 @@ public class MetaEntityServiceImpl extends ServiceImpl<MetaEntityMapper, MetaEnt
private void fillParentData(MetaEntity et){
//实体关系[DER1N_META_ENTITY_DST_DATASOURCE_DSID]
if(!ObjectUtils.isEmpty(et.getDsId())){
cn.ibizlab.core.lite.domain.DstDataSource datasource=et.getDatasource();
if(ObjectUtils.isEmpty(datasource)){
cn.ibizlab.core.lite.domain.DstDataSource dataSource=et.getDataSource();
if(ObjectUtils.isEmpty(dataSource)){
cn.ibizlab.core.lite.domain.DstDataSource majorEntity=dstdatasourceService.get(et.getDsId());
et.setDatasource(majorEntity);
datasource=majorEntity;
et.setDataSource(majorEntity);
dataSource=majorEntity;
}
et.setDsName(datasource.getDsName());
et.setDsName(dataSource.getDsName());
}
//实体关系[DER1N_META_ENTITY_DST_SYSTEM_SYSTEMID]
if(!ObjectUtils.isEmpty(et.getSystemId())){
......
......@@ -16,7 +16,7 @@
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="datasource" javaType="cn.ibizlab.core.lite.domain.DstDataSource" column="dsid" select="cn.ibizlab.core.lite.mapper.DstDataSourceMapper.selectById" fetchType="lazy"></association>
<association property="dataSource" javaType="cn.ibizlab.core.lite.domain.DstDataSource" column="dsid" select="cn.ibizlab.core.lite.mapper.DstDataSourceMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="system" javaType="cn.ibizlab.core.lite.domain.DstSystem" column="systemid" select="cn.ibizlab.core.lite.mapper.DstSystemMapper.selectById" fetchType="lazy"></association>
</resultMap>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册