提交 769d9970 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码 [ibz-lite,应用]

上级 ab5d0682
......@@ -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 });
});
}
......
......@@ -5,6 +5,7 @@ export default {
name: "名称",
code_name: "代码名称",
config: "配置",
materialized_view: "物化视图",
},
views: {
editview: {
......
......@@ -4,6 +4,7 @@ export default {
name: "名称",
code_name: "代码名称",
config: "配置",
materialized_view: "物化视图",
},
views: {
editview: {
......
......@@ -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);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
......
......@@ -132,7 +132,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet author="root" id="tab-dst_datasource-52-7">
<changeSet author="root" id="tab-dst_datasource-55-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>
......
......@@ -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.MATERIALIZEDVIEW, t1.MODELCFG, 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.MATERIALIZEDVIEW, t1.MODELID, 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.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[View]-->
......
......@@ -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":[
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册