Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
cf997cd0
提交
cf997cd0
编写于
12月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码 [ibz-lite,应用]
上级
769d9970
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
64 行增加
和
3 行删除
+64
-3
meta-model_en_US.ts
...src/locale/lanres/entities/meta-model/meta-model_en_US.ts
+1
-0
meta-model_zh_CN.ts
...src/locale/lanres/entities/meta-model/meta-model_zh_CN.ts
+1
-0
MetaModel.java
.../src/main/java/cn/ibizlab/core/lite/domain/MetaModel.java
+26
-0
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+2
-0
MetaModelMapper.xml
.../main/resources/mapper/lite/metamodel/MetaModelMapper.xml
+3
-3
ibzlite.json
ibzlite-core/src/main/resources/sysmodel/ibzlite.json
+14
-0
MetaModelDTO.java
...er-api/src/main/java/cn/ibizlab/api/dto/MetaModelDTO.java
+17
-0
未找到文件。
app_web/src/locale/lanres/entities/meta-model/meta-model_en_US.ts
浏览文件 @
cf997cd0
...
...
@@ -6,6 +6,7 @@ export default {
code_name
:
"代码名称"
,
config
:
"配置"
,
materialized_view
:
"物化视图"
,
refresh_time
:
"刷新时间"
,
},
views
:
{
editview
:
{
...
...
app_web/src/locale/lanres/entities/meta-model/meta-model_zh_CN.ts
浏览文件 @
cf997cd0
...
...
@@ -5,6 +5,7 @@ export default {
code_name
:
"代码名称"
,
config
:
"配置"
,
materialized_view
:
"物化视图"
,
refresh_time
:
"刷新时间"
,
},
views
:
{
editview
:
{
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaModel.java
浏览文件 @
cf997cd0
...
...
@@ -81,6 +81,14 @@ public class MetaModel extends EntityMP implements Serializable {
@JSONField
(
name
=
"materialized_view"
)
@JsonProperty
(
"materialized_view"
)
private
String
materializedView
;
/**
* 刷新时间
*/
@TableField
(
value
=
"refreshtime"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"refresh_time"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"refresh_time"
)
private
Timestamp
refreshTime
;
...
...
@@ -116,6 +124,24 @@ public class MetaModel extends EntityMP implements Serializable {
this
.
modify
(
"materializedview"
,
materializedView
);
}
/**
* 设置 [刷新时间]
*/
public
void
setRefreshTime
(
Timestamp
refreshTime
)
{
this
.
refreshTime
=
refreshTime
;
this
.
modify
(
"refreshtime"
,
refreshTime
);
}
/**
* 格式化日期 [刷新时间]
*/
public
String
formatRefreshTime
()
{
if
(
this
.
refreshTime
==
null
)
{
return
null
;
}
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
return
sdf
.
format
(
refreshTime
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
cf997cd0
...
...
@@ -339,6 +339,8 @@
</column>
<column
name=
"MATERIALIZEDVIEW"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"REFRESHTIME"
remarks=
""
type=
"DATETIME"
>
</column>
</createTable>
</changeSet>
...
...
ibzlite-core/src/main/resources/mapper/lite/metamodel/MetaModelMapper.xml
浏览文件 @
cf997cd0
...
...
@@ -8,7 +8,7 @@
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`MODELCFG`, t1.`MODELID`, t1.`MODELNAME` FROM `IBZMODEL` t1 ) t1 where modelid=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"MetaModelResultMap"
databaseId=
"oracle"
>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1 ) t1 where modelid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME
, t1.REFRESHTIME
FROM IBZMODEL t1 ) t1 where modelid=#{id}]]>
</select>
<select
id=
"selectById"
resultMap=
"MetaModelResultMap"
databaseId=
"postgresql"
>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1 ) t1 where modelid=#{id}]]>
...
...
@@ -40,7 +40,7 @@
</sql>
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"oracle"
>
<![CDATA[ SELECT t1.CODENAME, t1.MATERIALIZEDVIEW, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
<![CDATA[ SELECT t1.CODENAME, t1.MATERIALIZEDVIEW, t1.MODELID, t1.MODELNAME
, t1.REFRESHTIME
FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[Default]-->
...
...
@@ -55,7 +55,7 @@
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"oracle"
>
<![CDATA[ SELECT t1.CODENAME, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
<![CDATA[ SELECT t1.CODENAME, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME
, t1.REFRESHTIME
FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[View]-->
...
...
ibzlite-core/src/main/resources/sysmodel/ibzlite.json
浏览文件 @
cf997cd0
...
...
@@ -2801,6 +2801,20 @@
"key_field"
:
0
,
"show_order"
:
11
,
"major_field"
:
0
},
{
"fieldname"
:
"REFRESHTIME"
,
"codename"
:
"Refresh_time"
,
"field_logic_name"
:
"刷新时间"
,
"entity_name"
:
"MetaModel"
,
"field_type"
:
"DATETIME"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
12
,
"major_field"
:
0
}
],
"subEntitys"
:[
...
...
ibzlite-provider/ibzlite-provider-api/src/main/java/cn/ibizlab/api/dto/MetaModelDTO.java
浏览文件 @
cf997cd0
...
...
@@ -74,6 +74,15 @@ public class MetaModelDTO extends DTOBase implements Serializable {
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
materializedView
;
/**
* 属性 [REFRESHTIME]
*
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
locale
=
"zh"
,
timezone
=
"GMT+8"
)
@JSONField
(
name
=
"refresh_time"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"refresh_time"
)
private
Timestamp
refreshTime
;
/**
* 设置 [MODELNAME]
...
...
@@ -107,6 +116,14 @@ public class MetaModelDTO extends DTOBase implements Serializable {
this
.
modify
(
"materializedview"
,
materializedView
);
}
/**
* 设置 [REFRESHTIME]
*/
public
void
setRefreshTime
(
Timestamp
refreshTime
){
this
.
refreshTime
=
refreshTime
;
this
.
modify
(
"refreshtime"
,
refreshTime
);
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录