Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
fcafad2b
提交
fcafad2b
编写于
10月 20, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码
上级
27c7e809
变更
8
展开全部
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
1766 行增加
和
355 行删除
+1766
-355
DstComponent.java
...c/main/java/cn/ibizlab/core/lite/domain/DstComponent.java
+226
-8
DstConfig.java
.../src/main/java/cn/ibizlab/core/lite/domain/DstConfig.java
+172
-8
DstRouter.java
.../src/main/java/cn/ibizlab/core/lite/domain/DstRouter.java
+218
-8
DstView.java
...re/src/main/java/cn/ibizlab/core/lite/domain/DstView.java
+211
-8
MetaDataSet.java
...rc/main/java/cn/ibizlab/core/lite/domain/MetaDataSet.java
+185
-8
MetaField.java
.../src/main/java/cn/ibizlab/core/lite/domain/MetaField.java
+499
-8
MetaRelationship.java
...in/java/cn/ibizlab/core/lite/domain/MetaRelationship.java
+247
-8
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+8
-299
未找到文件。
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/DstComponent.java
浏览文件 @
fcafad2b
!!!!
模版产生代码错误
:----
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
----
FTL
stack
trace
(
"~"
means
nesting
-
related
):
-
Failed
at:
$
{
privateCodeName
}
[
in
template
"CODETEMPL_en_US"
at
line
334
,
column
32
]
----
\ No newline at end of file
package
cn
.
ibizlab
.
core
.
lite
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
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
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[组件]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZCOMPONENT"
,
resultMap
=
"DstComponentResultMap"
)
public
class
DstComponent
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 部件标识
*/
@DEField
(
name
=
"cid"
,
isKeyField
=
true
)
@TableId
(
value
=
"cid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 名称
*/
@DEField
(
name
=
"cname"
)
@TableField
(
value
=
"cname"
)
@JSONField
(
name
=
"name"
)
@JsonProperty
(
"name"
)
private
String
name
;
/**
* 代码名称
*/
@TableField
(
value
=
"codename"
)
@JSONField
(
name
=
"code_name"
)
@JsonProperty
(
"code_name"
)
private
String
codeName
;
/**
* 系统标识
*/
@TableField
(
value
=
"systemid"
)
@JSONField
(
name
=
"system_id"
)
@JsonProperty
(
"system_id"
)
private
String
systemId
;
/**
* 应用标识
*/
@TableField
(
value
=
"appid"
)
@JSONField
(
name
=
"app_id"
)
@JsonProperty
(
"app_id"
)
private
String
appId
;
/**
* 类型
*/
@DEField
(
name
=
"ctype"
)
@TableField
(
value
=
"ctype"
)
@JSONField
(
name
=
"type"
)
@JsonProperty
(
"type"
)
private
String
type
;
/**
* 实体标识
*/
@TableField
(
value
=
"entityid"
)
@JSONField
(
name
=
"entity_id"
)
@JsonProperty
(
"entity_id"
)
private
String
entityId
;
/**
* 主实体
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"entity_name"
)
@JsonProperty
(
"entity_name"
)
private
String
entityName
;
/**
* 配置
*/
@DEField
(
name
=
"cfg"
)
@TableField
(
value
=
"cfg"
)
@JSONField
(
name
=
"config"
)
@JsonProperty
(
"config"
)
private
String
config
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstApp
app
;
/**
*
*/
@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
.
MetaEntity
factEntity
;
/**
* 设置 [名称]
*/
public
void
setName
(
String
name
){
this
.
name
=
name
;
this
.
modify
(
"cname"
,
name
);
}
/**
* 设置 [代码名称]
*/
public
void
setCodeName
(
String
codeName
){
this
.
codeName
=
codeName
;
this
.
modify
(
"codename"
,
codeName
);
}
/**
* 设置 [系统标识]
*/
public
void
setSystemId
(
String
systemId
){
this
.
systemId
=
systemId
;
this
.
modify
(
"systemid"
,
systemId
);
}
/**
* 设置 [应用标识]
*/
public
void
setAppId
(
String
appId
){
this
.
appId
=
appId
;
this
.
modify
(
"appid"
,
appId
);
}
/**
* 设置 [类型]
*/
public
void
setType
(
String
type
){
this
.
type
=
type
;
this
.
modify
(
"ctype"
,
type
);
}
/**
* 设置 [实体标识]
*/
public
void
setEntityId
(
String
entityId
){
this
.
entityId
=
entityId
;
this
.
modify
(
"entityid"
,
entityId
);
}
/**
* 设置 [配置]
*/
public
void
setConfig
(
String
config
){
this
.
config
=
config
;
this
.
modify
(
"cfg"
,
config
);
}
/**
* 获取 [部件标识]
*/
public
String
getId
(){
if
(
ObjectUtils
.
isEmpty
(
id
)){
id
=(
String
)
getDefaultKey
(
true
);
}
return
id
;
}
@Override
public
Serializable
getDefaultKey
(
boolean
gen
)
{
if
((!
ObjectUtils
.
isEmpty
(
this
.
getSystemId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getAppId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getCodeName
())))
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s||%s"
,
this
.
getSystemId
(),
this
.
getAppId
(),
this
.
getCodeName
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"cid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/DstConfig.java
浏览文件 @
fcafad2b
!!!!
模版产生代码错误
:----
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
----
FTL
stack
trace
(
"~"
means
nesting
-
related
):
-
Failed
at:
$
{
privateCodeName
}
[
in
template
"CODETEMPL_en_US"
at
line
334
,
column
32
]
----
\ No newline at end of file
package
cn
.
ibizlab
.
core
.
lite
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
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
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[配置]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZCFG"
,
resultMap
=
"DstConfigResultMap"
)
public
class
DstConfig
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"cfgid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"cfg_id"
)
@JsonProperty
(
"cfg_id"
)
private
String
cfgId
;
/**
* 系统标识
*/
@TableField
(
value
=
"systemid"
)
@JSONField
(
name
=
"system_id"
)
@JsonProperty
(
"system_id"
)
private
String
systemId
;
/**
* 配置类型
*/
@TableField
(
value
=
"cfgtype"
)
@JSONField
(
name
=
"cfg_type"
)
@JsonProperty
(
"cfg_type"
)
private
String
cfgType
;
/**
* 引用类型
*/
@TableField
(
value
=
"targettype"
)
@JSONField
(
name
=
"target_type"
)
@JsonProperty
(
"target_type"
)
private
String
targetType
;
/**
* 用户标识
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEMAN
)
@TableField
(
value
=
"userid"
)
@JSONField
(
name
=
"user_id"
)
@JsonProperty
(
"user_id"
)
private
String
userId
;
/**
* 配置内容
*/
@TableField
(
value
=
"cfg"
)
@JSONField
(
name
=
"cfg"
)
@JsonProperty
(
"cfg"
)
private
String
cfg
;
/**
* 更新时间
*/
@DEField
(
preType
=
DEPredefinedFieldType
.
UPDATEDATE
)
@TableField
(
value
=
"updatedate"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"update_date"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"update_date"
)
private
Timestamp
updateDate
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstSystem
system
;
/**
* 设置 [系统标识]
*/
public
void
setSystemId
(
String
systemId
){
this
.
systemId
=
systemId
;
this
.
modify
(
"systemid"
,
systemId
);
}
/**
* 设置 [配置类型]
*/
public
void
setCfgType
(
String
cfgType
){
this
.
cfgType
=
cfgType
;
this
.
modify
(
"cfgtype"
,
cfgType
);
}
/**
* 设置 [引用类型]
*/
public
void
setTargetType
(
String
targetType
){
this
.
targetType
=
targetType
;
this
.
modify
(
"targettype"
,
targetType
);
}
/**
* 设置 [配置内容]
*/
public
void
setCfg
(
String
cfg
){
this
.
cfg
=
cfg
;
this
.
modify
(
"cfg"
,
cfg
);
}
/**
* 获取 [标识]
*/
public
String
getCfgId
(){
if
(
ObjectUtils
.
isEmpty
(
cfgId
)){
cfgId
=(
String
)
getDefaultKey
(
true
);
}
return
cfgId
;
}
@Override
public
Serializable
getDefaultKey
(
boolean
gen
)
{
if
((!
ObjectUtils
.
isEmpty
(
this
.
getSystemId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getCfgType
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getTargetType
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getUserId
())))
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s||%s||%s"
,
this
.
getSystemId
(),
this
.
getCfgType
(),
this
.
getTargetType
(),
this
.
getUserId
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"cfgid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/DstRouter.java
浏览文件 @
fcafad2b
!!!!
模版产生代码错误
:----
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
----
FTL
stack
trace
(
"~"
means
nesting
-
related
):
-
Failed
at:
$
{
privateCodeName
}
[
in
template
"CODETEMPL_en_US"
at
line
334
,
column
32
]
----
\ No newline at end of file
package
cn
.
ibizlab
.
core
.
lite
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
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
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[路由]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZROUTER"
,
resultMap
=
"DstRouterResultMap"
)
public
class
DstRouter
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 路径标识
*/
@DEField
(
name
=
"routerid"
,
isKeyField
=
true
)
@TableId
(
value
=
"routerid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 路径名称
*/
@DEField
(
name
=
"routername"
)
@TableField
(
value
=
"routername"
)
@JSONField
(
name
=
"name"
)
@JsonProperty
(
"name"
)
private
String
name
;
/**
* 系统标识
*/
@TableField
(
value
=
"systemid"
)
@JSONField
(
name
=
"system_id"
)
@JsonProperty
(
"system_id"
)
private
String
systemId
;
/**
* 应用标识
*/
@TableField
(
value
=
"appid"
)
@JSONField
(
name
=
"app_id"
)
@JsonProperty
(
"app_id"
)
private
String
appId
;
/**
* 路径
*/
@DEField
(
name
=
"routerpath"
)
@TableField
(
value
=
"routerpath"
)
@JSONField
(
name
=
"path"
)
@JsonProperty
(
"path"
)
private
String
path
;
/**
* 父路径标识
*/
@TableField
(
value
=
"parentid"
)
@JSONField
(
name
=
"parentid"
)
@JsonProperty
(
"parentid"
)
private
String
parentid
;
/**
* meta
*/
@TableField
(
value
=
"meta"
)
@JSONField
(
name
=
"meta"
)
@JsonProperty
(
"meta"
)
private
String
meta
;
/**
* 组件
*/
@TableField
(
value
=
"component"
)
@JSONField
(
name
=
"component"
)
@JsonProperty
(
"component"
)
private
String
component
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstApp
app
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstRouter
parent
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstSystem
system
;
/**
* 设置 [路径名称]
*/
public
void
setName
(
String
name
){
this
.
name
=
name
;
this
.
modify
(
"routername"
,
name
);
}
/**
* 设置 [系统标识]
*/
public
void
setSystemId
(
String
systemId
){
this
.
systemId
=
systemId
;
this
.
modify
(
"systemid"
,
systemId
);
}
/**
* 设置 [应用标识]
*/
public
void
setAppId
(
String
appId
){
this
.
appId
=
appId
;
this
.
modify
(
"appid"
,
appId
);
}
/**
* 设置 [路径]
*/
public
void
setPath
(
String
path
){
this
.
path
=
path
;
this
.
modify
(
"routerpath"
,
path
);
}
/**
* 设置 [父路径标识]
*/
public
void
setParentid
(
String
parentid
){
this
.
parentid
=
parentid
;
this
.
modify
(
"parentid"
,
parentid
);
}
/**
* 设置 [meta]
*/
public
void
setMeta
(
String
meta
){
this
.
meta
=
meta
;
this
.
modify
(
"meta"
,
meta
);
}
/**
* 设置 [组件]
*/
public
void
setComponent
(
String
component
){
this
.
component
=
component
;
this
.
modify
(
"component"
,
component
);
}
/**
* 获取 [路径标识]
*/
public
String
getId
(){
if
(
ObjectUtils
.
isEmpty
(
id
)){
id
=(
String
)
getDefaultKey
(
true
);
}
return
id
;
}
@Override
public
Serializable
getDefaultKey
(
boolean
gen
)
{
if
((!
ObjectUtils
.
isEmpty
(
this
.
getSystemId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getAppId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getPath
())))
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s||%s"
,
this
.
getSystemId
(),
this
.
getAppId
(),
this
.
getPath
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"routerid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/DstView.java
浏览文件 @
fcafad2b
!!!!
模版产生代码错误
:----
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
----
FTL
stack
trace
(
"~"
means
nesting
-
related
):
-
Failed
at:
$
{
privateCodeName
}
[
in
template
"CODETEMPL_en_US"
at
line
334
,
column
32
]
----
\ No newline at end of file
package
cn
.
ibizlab
.
core
.
lite
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
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
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[页面]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZVIEW"
,
resultMap
=
"DstViewResultMap"
)
public
class
DstView
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 标识
*/
@DEField
(
name
=
"viewid"
,
isKeyField
=
true
)
@TableId
(
value
=
"viewid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 名称
*/
@DEField
(
name
=
"viewname"
)
@TableField
(
value
=
"viewname"
)
@JSONField
(
name
=
"name"
)
@JsonProperty
(
"name"
)
private
String
name
;
/**
* 视图路径
*/
@DEField
(
name
=
"viewpath"
)
@TableField
(
value
=
"viewpath"
)
@JSONField
(
name
=
"path"
)
@JsonProperty
(
"path"
)
private
String
path
;
/**
* 系统标识
*/
@TableField
(
value
=
"systemid"
)
@JSONField
(
name
=
"system_id"
)
@JsonProperty
(
"system_id"
)
private
String
systemId
;
/**
* 应用标识
*/
@TableField
(
value
=
"appid"
)
@JSONField
(
name
=
"app_id"
)
@JsonProperty
(
"app_id"
)
private
String
appId
;
/**
* 实体标识
*/
@TableField
(
value
=
"entityid"
)
@JSONField
(
name
=
"entity_id"
)
@JsonProperty
(
"entity_id"
)
private
String
entityId
;
/**
* 主实体
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"entity_name"
)
@JsonProperty
(
"entity_name"
)
private
String
entityName
;
/**
* 配置
*/
@DEField
(
name
=
"cfg"
)
@TableField
(
value
=
"cfg"
)
@JSONField
(
name
=
"config"
)
@JsonProperty
(
"config"
)
private
String
config
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstApp
app
;
/**
*
*/
@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
.
MetaEntity
factEntity
;
/**
* 设置 [名称]
*/
public
void
setName
(
String
name
){
this
.
name
=
name
;
this
.
modify
(
"viewname"
,
name
);
}
/**
* 设置 [视图路径]
*/
public
void
setPath
(
String
path
){
this
.
path
=
path
;
this
.
modify
(
"viewpath"
,
path
);
}
/**
* 设置 [系统标识]
*/
public
void
setSystemId
(
String
systemId
){
this
.
systemId
=
systemId
;
this
.
modify
(
"systemid"
,
systemId
);
}
/**
* 设置 [应用标识]
*/
public
void
setAppId
(
String
appId
){
this
.
appId
=
appId
;
this
.
modify
(
"appid"
,
appId
);
}
/**
* 设置 [实体标识]
*/
public
void
setEntityId
(
String
entityId
){
this
.
entityId
=
entityId
;
this
.
modify
(
"entityid"
,
entityId
);
}
/**
* 设置 [配置]
*/
public
void
setConfig
(
String
config
){
this
.
config
=
config
;
this
.
modify
(
"cfg"
,
config
);
}
/**
* 获取 [标识]
*/
public
String
getId
(){
if
(
ObjectUtils
.
isEmpty
(
id
)){
id
=(
String
)
getDefaultKey
(
true
);
}
return
id
;
}
@Override
public
Serializable
getDefaultKey
(
boolean
gen
)
{
if
((!
ObjectUtils
.
isEmpty
(
this
.
getSystemId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getAppId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getPath
())))
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s||%s"
,
this
.
getSystemId
(),
this
.
getAppId
(),
this
.
getPath
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"viewid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaDataSet.java
浏览文件 @
fcafad2b
!!!!
模版产生代码错误
:----
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
----
FTL
stack
trace
(
"~"
means
nesting
-
related
):
-
Failed
at:
$
{
privateCodeName
}
[
in
template
"CODETEMPL_en_US"
at
line
334
,
column
32
]
----
\ No newline at end of file
package
cn
.
ibizlab
.
core
.
lite
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
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
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[数据集]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZDATASET"
,
resultMap
=
"MetaDataSetResultMap"
)
public
class
MetaDataSet
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 标识
*/
@DEField
(
isKeyField
=
true
)
@TableId
(
value
=
"datasetid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"dataset_id"
)
@JsonProperty
(
"dataset_id"
)
private
String
datasetId
;
/**
* 名称
*/
@TableField
(
value
=
"datasetname"
)
@JSONField
(
name
=
"dataset_name"
)
@JsonProperty
(
"dataset_name"
)
private
String
datasetName
;
/**
* 实体标识
*/
@TableField
(
value
=
"entityid"
)
@JSONField
(
name
=
"entity_id"
)
@JsonProperty
(
"entity_id"
)
private
String
entityId
;
/**
* 实体
*/
@TableField
(
value
=
"entityname"
)
@JSONField
(
name
=
"entity_name"
)
@JsonProperty
(
"entity_name"
)
private
String
entityName
;
/**
* 代码名称
*/
@TableField
(
value
=
"codename"
)
@JSONField
(
name
=
"code_name"
)
@JsonProperty
(
"code_name"
)
private
String
codeName
;
/**
* 代码
*/
@TableField
(
value
=
"dscode"
)
@JSONField
(
name
=
"ds_code"
)
@JsonProperty
(
"ds_code"
)
private
String
dsCode
;
/**
* 模型
*/
@TableField
(
value
=
"dsmodel"
)
@JSONField
(
name
=
"ds_model"
)
@JsonProperty
(
"ds_model"
)
private
String
dsModel
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
entity
;
/**
* 设置 [名称]
*/
public
void
setDatasetName
(
String
datasetName
){
this
.
datasetName
=
datasetName
;
this
.
modify
(
"datasetname"
,
datasetName
);
}
/**
* 设置 [实体标识]
*/
public
void
setEntityId
(
String
entityId
){
this
.
entityId
=
entityId
;
this
.
modify
(
"entityid"
,
entityId
);
}
/**
* 设置 [实体]
*/
public
void
setEntityName
(
String
entityName
){
this
.
entityName
=
entityName
;
this
.
modify
(
"entityname"
,
entityName
);
}
/**
* 设置 [代码名称]
*/
public
void
setCodeName
(
String
codeName
){
this
.
codeName
=
codeName
;
this
.
modify
(
"codename"
,
codeName
);
}
/**
* 设置 [代码]
*/
public
void
setDsCode
(
String
dsCode
){
this
.
dsCode
=
dsCode
;
this
.
modify
(
"dscode"
,
dsCode
);
}
/**
* 设置 [模型]
*/
public
void
setDsModel
(
String
dsModel
){
this
.
dsModel
=
dsModel
;
this
.
modify
(
"dsmodel"
,
dsModel
);
}
/**
* 获取 [标识]
*/
public
String
getDatasetId
(){
if
(
ObjectUtils
.
isEmpty
(
datasetId
)){
datasetId
=(
String
)
getDefaultKey
(
true
);
}
return
datasetId
;
}
@Override
public
Serializable
getDefaultKey
(
boolean
gen
)
{
if
((!
ObjectUtils
.
isEmpty
(
this
.
getEntityId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getCodeName
())))
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s"
,
this
.
getEntityId
(),
this
.
getCodeName
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"datasetid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaField.java
浏览文件 @
fcafad2b
此差异已折叠。
点击以展开。
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaRelationship.java
浏览文件 @
fcafad2b
!!!!
模版产生代码错误
:----
Tip:
If
the
failing
expression
is
known
to
be
legally
refer
to
something
that
'
s
sometimes
null
or
missing
,
either
specify
a
default
value
like
myOptionalVar
!
myDefault
,
or
use
<
#
if
myOptionalVar
??>
when
-
present
<
#
else
>
when
-
missing
</
#
if
>.
(
These
only
cover
the
last
step
of
the
expression
;
to
cover
the
whole
expression
,
use
parenthesis:
(
myOptionalVar
.
foo
)!
myDefault
,
(
myOptionalVar
.
foo
)??
----
----
FTL
stack
trace
(
"~"
means
nesting
-
related
):
-
Failed
at:
$
{
privateCodeName
}
[
in
template
"CODETEMPL_en_US"
at
line
334
,
column
32
]
----
\ No newline at end of file
package
cn
.
ibizlab
.
core
.
lite
.
domain
;
import
java.sql.Timestamp
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.math.BigInteger
;
import
java.util.HashMap
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
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
java.io.Serializable
;
import
lombok.*
;
import
org.springframework.data.annotation.Transient
;
import
cn.ibizlab.util.annotation.Audit
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
com.baomidou.mybatisplus.core.toolkit.IdWorker
;
/**
* 实体[实体关系]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties
(
value
=
"handler"
)
@TableName
(
value
=
"IBZRELATION"
,
resultMap
=
"MetaRelationshipResultMap"
)
public
class
MetaRelationship
extends
EntityMP
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 关系标识
*/
@DEField
(
name
=
"relationid"
,
isKeyField
=
true
)
@TableId
(
value
=
"relationid"
,
type
=
IdType
.
ASSIGN_UUID
)
@JSONField
(
name
=
"id"
)
@JsonProperty
(
"id"
)
private
String
id
;
/**
* 关系名称
*/
@DEField
(
name
=
"relationname"
)
@TableField
(
value
=
"relationname"
)
@JSONField
(
name
=
"name"
)
@JsonProperty
(
"name"
)
private
String
name
;
/**
* 类型
*/
@DEField
(
name
=
"reltype"
)
@TableField
(
value
=
"reltype"
)
@JSONField
(
name
=
"relation_type"
)
@JsonProperty
(
"relation_type"
)
private
String
relationType
;
/**
* 代码名称
*/
@TableField
(
value
=
"codename"
)
@JSONField
(
name
=
"code_name"
)
@JsonProperty
(
"code_name"
)
private
String
codeName
;
/**
* 实体标识
*/
@TableField
(
value
=
"entityid"
)
@JSONField
(
name
=
"entity_id"
)
@JsonProperty
(
"entity_id"
)
private
String
entityId
;
/**
* 实体名称
*/
@TableField
(
value
=
"entityname"
)
@JSONField
(
name
=
"entity_name"
)
@JsonProperty
(
"entity_name"
)
private
String
entityName
;
/**
* 引用实体标识
*/
@TableField
(
value
=
"refentityid"
)
@JSONField
(
name
=
"ref_entity_id"
)
@JsonProperty
(
"ref_entity_id"
)
private
String
refEntityId
;
/**
* 引用实体名称
*/
@TableField
(
value
=
"refentityname"
)
@JSONField
(
name
=
"ref_entity_name"
)
@JsonProperty
(
"ref_entity_name"
)
private
String
refEntityName
;
/**
* 嵌套代码名称
*/
@TableField
(
value
=
"nestedname"
)
@JSONField
(
name
=
"nested_name"
)
@JsonProperty
(
"nested_name"
)
private
String
nestedName
;
/**
* 系统
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"system_id"
)
@JsonProperty
(
"system_id"
)
private
String
systemId
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
entity
;
/**
*
*/
@JsonIgnore
@JSONField
(
serialize
=
false
)
@TableField
(
exist
=
false
)
private
cn
.
ibizlab
.
core
.
lite
.
domain
.
MetaEntity
reference
;
/**
* lookup
*/
@JSONField
(
name
=
"lookups"
)
@JsonProperty
(
"lookups"
)
@TableField
(
value
=
"lookup"
,
typeHandler
=
cn
.
ibizlab
.
core
.
lite
.
domain
.
handlers
.
DstLookupTypeHandler
.
class
)
private
List
<
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstLookup
>
lookup
;
/**
* 设置 [lookup]
*/
public
void
setLookup
(
List
<
cn
.
ibizlab
.
core
.
lite
.
domain
.
DstLookup
>
lookup
){
this
.
lookup
=
lookup
;
this
.
modify
(
"lookup"
,(
lookup
!=
null
)?
lookup:
(
new
ArrayList
()));
}
/**
* 设置 [关系名称]
*/
public
void
setName
(
String
name
){
this
.
name
=
name
;
this
.
modify
(
"relationname"
,
name
);
}
/**
* 设置 [类型]
*/
public
void
setRelationType
(
String
relationType
){
this
.
relationType
=
relationType
;
this
.
modify
(
"reltype"
,
relationType
);
}
/**
* 设置 [代码名称]
*/
public
void
setCodeName
(
String
codeName
){
this
.
codeName
=
codeName
;
this
.
modify
(
"codename"
,
codeName
);
}
/**
* 设置 [实体标识]
*/
public
void
setEntityId
(
String
entityId
){
this
.
entityId
=
entityId
;
this
.
modify
(
"entityid"
,
entityId
);
}
/**
* 设置 [实体名称]
*/
public
void
setEntityName
(
String
entityName
){
this
.
entityName
=
entityName
;
this
.
modify
(
"entityname"
,
entityName
);
}
/**
* 设置 [引用实体标识]
*/
public
void
setRefEntityId
(
String
refEntityId
){
this
.
refEntityId
=
refEntityId
;
this
.
modify
(
"refentityid"
,
refEntityId
);
}
/**
* 设置 [引用实体名称]
*/
public
void
setRefEntityName
(
String
refEntityName
){
this
.
refEntityName
=
refEntityName
;
this
.
modify
(
"refentityname"
,
refEntityName
);
}
/**
* 设置 [嵌套代码名称]
*/
public
void
setNestedName
(
String
nestedName
){
this
.
nestedName
=
nestedName
;
this
.
modify
(
"nestedname"
,
nestedName
);
}
/**
* 获取 [关系标识]
*/
public
String
getId
(){
if
(
ObjectUtils
.
isEmpty
(
id
)){
id
=(
String
)
getDefaultKey
(
true
);
}
return
id
;
}
@Override
public
Serializable
getDefaultKey
(
boolean
gen
)
{
if
((!
ObjectUtils
.
isEmpty
(
this
.
getEntityId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getRefEntityId
()))&&(!
ObjectUtils
.
isEmpty
(
this
.
getCodeName
())))
return
DigestUtils
.
md5DigestAsHex
(
String
.
format
(
"%s||%s||%s"
,
this
.
getEntityId
(),
this
.
getRefEntityId
(),
this
.
getCodeName
()).
getBytes
());
return
null
;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public
<
T
>
T
copyTo
(
T
targetEntity
,
boolean
bIncEmpty
)
{
this
.
reset
(
"relationid"
);
return
super
.
copyTo
(
targetEntity
,
bIncEmpty
);
}
}
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
fcafad2b
此差异已折叠。
点击以展开。
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录