Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
a18c57b9
提交
a18c57b9
编写于
11月 13, 2020
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
结构更新
上级
2e5d53f9
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
123 行增加
和
26 行删除
+123
-26
MetaEntity.java
...src/main/java/cn/ibizlab/core/lite/domain/MetaEntity.java
+88
-26
20201113080245_changelog.xml
...esources/liquibase/changelog/20201113080245_changelog.xml
+35
-0
未找到文件。
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaEntity.java
浏览文件 @
a18c57b9
...
...
@@ -18,6 +18,8 @@ import cn.ibizlab.util.domain.EntityBase;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.helper.DataObject
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
...
...
@@ -36,7 +38,7 @@ import com.baomidou.mybatisplus.core.toolkit.IdWorker;
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZENTITY"
,
resultMap
=
"MetaEntityResultMap"
)
@TableName
(
value
=
"IBZENTITY"
,
resultMap
=
"MetaEntityResultMap"
)
public
class
MetaEntity
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -44,8 +46,8 @@ public class MetaEntity extends EntityMP implements Serializable {
/**
* 标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"entityid"
,
type
=
IdType
.
ASSIGN_UUID
)
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"entityid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"entity_id"
)
@JsonProperty
(
"entity_id"
)
private
String
entityId
;
...
...
@@ -105,9 +107,37 @@ public class MetaEntity extends EntityMP implements Serializable {
@JSONField
(
name
=
"ds_name"
)
@JsonProperty
(
"ds_name"
)
private
String
dsName
;
/**
* 模块标识
*/
@TableField
(
value
=
"moduleid"
)
@JSONField
(
name
=
"module_id"
)
@JsonProperty
(
"module_id"
)
private
String
moduleId
;
/**
* 模块
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"module_name"
)
@JsonProperty
(
"module_name"
)
private
String
moduleName
;
/**
* 扩展参数
*/
@TableField
(
value
=
"extparams"
)
@JSONField
(
name
=
"ext_params"
)
@JsonProperty
(
"ext_params"
)
private
String
extParams
;
/**
* 排序
*/
@TableField
(
value
=
"showorder"
)
@JSONField
(
name
=
"show_order"
)
@JsonProperty
(
"show_order"
)
private
Integer
showOrder
;
/**
*
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
...
...
@@ -115,13 +145,21 @@ public class MetaEntity extends EntityMP implements Serializable {
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstDataSource
dataSource
;
/**
*
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstSystem
system
;
/**
* 模型
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaModule
module
;
/**
* 数据集
...
...
@@ -158,57 +196,81 @@ public class MetaEntity extends EntityMP implements Serializable {
/**
* 设置 [实体名]
*/
public
void
setEntityName
(
String
entityName
){
this
.
entityName
=
entityName
;
this
.
modify
(
"entityname"
,
entityName
);
public
void
setEntityName
(
String
entityName
)
{
this
.
entityName
=
entityName
;
this
.
modify
(
"entityname"
,
entityName
);
}
/**
* 设置 [逻辑名称]
*/
public
void
setLogicName
(
String
logicName
){
this
.
logicName
=
logicName
;
this
.
modify
(
"logicname"
,
logicName
);
public
void
setLogicName
(
String
logicName
)
{
this
.
logicName
=
logicName
;
this
.
modify
(
"logicname"
,
logicName
);
}
/**
* 设置 [代码名称]
*/
public
void
setCodeName
(
String
codeName
){
this
.
codeName
=
codeName
;
this
.
modify
(
"codename"
,
codeName
);
public
void
setCodeName
(
String
codeName
)
{
this
.
codeName
=
codeName
;
this
.
modify
(
"codename"
,
codeName
);
}
/**
* 设置 [表名称]
*/
public
void
setTableName
(
String
tableName
){
this
.
tableName
=
tableName
;
this
.
modify
(
"tablename"
,
tableName
);
public
void
setTableName
(
String
tableName
)
{
this
.
tableName
=
tableName
;
this
.
modify
(
"tablename"
,
tableName
);
}
/**
* 设置 [系统标识]
*/
public
void
setSystemId
(
String
systemId
){
this
.
systemId
=
systemId
;
this
.
modify
(
"systemid"
,
systemId
);
public
void
setSystemId
(
String
systemId
)
{
this
.
systemId
=
systemId
;
this
.
modify
(
"systemid"
,
systemId
);
}
/**
* 设置 [数据源标识]
*/
public
void
setDsId
(
String
dsId
){
this
.
dsId
=
dsId
;
this
.
modify
(
"dsid"
,
dsId
);
public
void
setDsId
(
String
dsId
)
{
this
.
dsId
=
dsId
;
this
.
modify
(
"dsid"
,
dsId
);
}
/**
* 设置 [模块标识]
*/
public
void
setModuleId
(
String
moduleId
)
{
this
.
moduleId
=
moduleId
;
this
.
modify
(
"moduleid"
,
moduleId
);
}
/**
* 设置 [扩展参数]
*/
public
void
setExtParams
(
String
extParams
)
{
this
.
extParams
=
extParams
;
this
.
modify
(
"extparams"
,
extParams
);
}
/**
* 设置 [排序]
*/
public
void
setShowOrder
(
Integer
showOrder
)
{
this
.
showOrder
=
showOrder
;
this
.
modify
(
"showorder"
,
showOrder
);
}
/**
* 获取 [标识]
*/
public
String
getEntityId
(){
if
(
ObjectUtils
.
isEmpty
(
entityId
)){
public
String
getEntityId
()
{
if
(
ObjectUtils
.
isEmpty
(
entityId
))
{
entityId
=(
String
)
getDefaultKey
(
true
);
}
return
entityId
;
...
...
@@ -230,7 +292,7 @@ public class MetaEntity extends EntityMP implements Serializable {
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"entityid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
...
...
ibzlite-core/src/main/resources/liquibase/changelog/20201113080245_changelog.xml
0 → 100644
浏览文件 @
a18c57b9
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog
xmlns=
"http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ext=
"http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:pro=
"http://www.liquibase.org/xml/ns/pro"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-3.8.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"
>
<changeSet
author=
"mac (generated)"
id=
"1605254576612-1"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<tableExists
tableName=
"IBZMODULE"
/>
</not>
</preConditions>
<createTable
tableName=
"IBZMODULE"
>
<column
name=
"MODULEID"
type=
"VARCHAR(100)"
>
<constraints
nullable=
"false"
primaryKey=
"true"
primaryKeyName=
"PK_META_MODULE_MODULEID"
/>
</column>
<column
name=
"MODULENAME"
type=
"VARCHAR(100)"
/>
<column
name=
"CODENAME"
type=
"VARCHAR(100)"
/>
<column
name=
"SYSTEMID"
type=
"VARCHAR(100)"
/>
<column
name=
"SHOWORDER"
type=
"INT"
/>
</createTable>
</changeSet>
<changeSet
author=
"mac (generated)"
id=
"1605254576612-2"
>
<preConditions
onFail=
"MARK_RAN"
>
<not>
<columnExists
tableName=
"IBZENTITY"
columnName=
"MODULEID"
/>
</not>
</preConditions>
<addColumn
tableName=
"IBZENTITY"
>
<column
name=
"MODULEID"
type=
"VARCHAR(100 BYTE)"
/>
</addColumn>
<addColumn
tableName=
"IBZENTITY"
>
<column
name=
"EXTPARAMS"
type=
"CLOB(2147483647)"
/>
</addColumn>
<addColumn
tableName=
"IBZENTITY"
>
<column
name=
"SHOWORDER"
type=
"INTEGER"
/>
</addColumn>
</changeSet>
</databaseChangeLog>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录