Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
769d9970
提交
769d9970
编写于
12月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong 发布系统代码 [ibz-lite,应用]
上级
ab5d0682
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
58 行增加
和
5 行删除
+58
-5
tab-exp-view-engine.ts
app_web/src/engine/view/tab-exp-view-engine.ts
+3
-0
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
+15
-0
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+4
-2
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/engine/view/tab-exp-view-engine.ts
浏览文件 @
769d9970
...
...
@@ -41,6 +41,9 @@ export default class TabExpViewEngine extends ViewEngine {
if
(
!
Object
.
is
(
_item
.
type
,
'TABEXPPANEL'
))
{
return
;
}
if
(
this
.
view
.
context
&&
this
.
view
.
context
[(
this
.
keyPSDEField
as
string
)]){
return
;
}
this
.
setViewState2
({
tag
:
_item
.
name
,
action
:
'load'
,
viewdata
:
this
.
view
.
context
});
});
}
...
...
app_web/src/locale/lanres/entities/meta-model/meta-model_en_US.ts
浏览文件 @
769d9970
...
...
@@ -5,6 +5,7 @@ export default {
name
:
"名称"
,
code_name
:
"代码名称"
,
config
:
"配置"
,
materialized_view
:
"物化视图"
,
},
views
:
{
editview
:
{
...
...
app_web/src/locale/lanres/entities/meta-model/meta-model_zh_CN.ts
浏览文件 @
769d9970
...
...
@@ -4,6 +4,7 @@ export default {
name
:
"名称"
,
code_name
:
"代码名称"
,
config
:
"配置"
,
materialized_view
:
"物化视图"
,
},
views
:
{
editview
:
{
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/lite/domain/MetaModel.java
浏览文件 @
769d9970
...
...
@@ -74,6 +74,13 @@ public class MetaModel extends EntityMP implements Serializable {
@JSONField
(
name
=
"config"
)
@JsonProperty
(
"config"
)
private
String
config
;
/**
* 物化视图
*/
@TableField
(
value
=
"materializedview"
)
@JSONField
(
name
=
"materialized_view"
)
@JsonProperty
(
"materialized_view"
)
private
String
materializedView
;
...
...
@@ -101,6 +108,14 @@ public class MetaModel extends EntityMP implements Serializable {
this
.
modify
(
"modelcfg"
,
config
);
}
/**
* 设置 [物化视图]
*/
public
void
setMaterializedView
(
String
materializedView
)
{
this
.
materializedView
=
materializedView
;
this
.
modify
(
"materializedview"
,
materializedView
);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
...
...
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
769d9970
...
...
@@ -132,7 +132,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet
author=
"root"
id=
"tab-dst_datasource-5
2
-7"
>
<changeSet
author=
"root"
id=
"tab-dst_datasource-5
5
-7"
>
<createTable
tableName=
"IBZDATASOURCE"
>
<column
name=
"DSID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_DST_DATASOURCE_DSID"
/>
...
...
@@ -326,7 +326,7 @@
<!--输出实体[META_MODEL]数据结构 -->
<changeSet
author=
"root"
id=
"tab-meta_model-
29
-14"
>
<changeSet
author=
"root"
id=
"tab-meta_model-
30
-14"
>
<createTable
tableName=
"IBZMODEL"
>
<column
name=
"MODELID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_MODEL_MODELID"
/>
...
...
@@ -337,6 +337,8 @@
</column>
<column
name=
"MODELCFG"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
<column
name=
"MATERIALIZEDVIEW"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</createTable>
</changeSet>
...
...
ibzlite-core/src/main/resources/mapper/lite/metamodel/MetaModelMapper.xml
浏览文件 @
769d9970
...
...
@@ -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.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1 ) t1 where modelid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.M
ATERIALIZEDVIEW, t1.M
ODELCFG, t1.MODELID, t1.MODELNAME 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.MODELID, t1.MODELNAME FROM IBZMODEL t1
<![CDATA[ SELECT t1.CODENAME, t1.M
ATERIALIZEDVIEW, t1.M
ODELID, t1.MODELNAME FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[Default]-->
...
...
@@ -55,7 +55,7 @@
</sql>
<!--数据查询[View]-->
<sql
id=
"View"
databaseId=
"oracle"
>
<![CDATA[ SELECT t1.CODENAME, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
<![CDATA[ SELECT t1.CODENAME, t1.M
ATERIALIZEDVIEW, t1.M
ODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[View]-->
...
...
ibzlite-core/src/main/resources/sysmodel/ibzlite.json
浏览文件 @
769d9970
...
...
@@ -2787,6 +2787,20 @@
"key_field"
:
0
,
"show_order"
:
5
,
"major_field"
:
0
},
{
"fieldname"
:
"MATERIALIZEDVIEW"
,
"codename"
:
"Materialized_view"
,
"field_logic_name"
:
"物化视图"
,
"entity_name"
:
"MetaModel"
,
"field_type"
:
"TEXT"
,
"nullable"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"key_field"
:
0
,
"show_order"
:
11
,
"major_field"
:
0
}
],
"subEntitys"
:[
...
...
ibzlite-provider/ibzlite-provider-api/src/main/java/cn/ibizlab/api/dto/MetaModelDTO.java
浏览文件 @
769d9970
...
...
@@ -65,6 +65,15 @@ public class MetaModelDTO extends DTOBase implements Serializable {
@Size
(
min
=
0
,
max
=
1048576
,
message
=
"内容长度必须小于等于[1048576]"
)
private
String
config
;
/**
* 属性 [MATERIALIZEDVIEW]
*
*/
@JSONField
(
name
=
"materialized_view"
)
@JsonProperty
(
"materialized_view"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
materializedView
;
/**
* 设置 [MODELNAME]
...
...
@@ -90,6 +99,14 @@ public class MetaModelDTO extends DTOBase implements Serializable {
this
.
modify
(
"modelcfg"
,
config
);
}
/**
* 设置 [MATERIALIZEDVIEW]
*/
public
void
setMaterializedView
(
String
materializedView
){
this
.
materializedView
=
materializedView
;
this
.
modify
(
"materializedview"
,
materializedView
);
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录