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

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

上级 769d9970
...@@ -6,6 +6,7 @@ export default { ...@@ -6,6 +6,7 @@ export default {
code_name: "代码名称", code_name: "代码名称",
config: "配置", config: "配置",
materialized_view: "物化视图", materialized_view: "物化视图",
refresh_time: "刷新时间",
}, },
views: { views: {
editview: { editview: {
......
...@@ -5,6 +5,7 @@ export default { ...@@ -5,6 +5,7 @@ export default {
code_name: "代码名称", code_name: "代码名称",
config: "配置", config: "配置",
materialized_view: "物化视图", materialized_view: "物化视图",
refresh_time: "刷新时间",
}, },
views: { views: {
editview: { editview: {
......
...@@ -81,6 +81,14 @@ public class MetaModel extends EntityMP implements Serializable { ...@@ -81,6 +81,14 @@ public class MetaModel extends EntityMP implements Serializable {
@JSONField(name = "materialized_view") @JSONField(name = "materialized_view")
@JsonProperty("materialized_view") @JsonProperty("materialized_view")
private String materializedView; 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 { ...@@ -116,6 +124,24 @@ public class MetaModel extends EntityMP implements Serializable {
this.modify("materializedview", materializedView); 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);
}
/** /**
* 复制当前对象数据到目标对象(粘贴重置) * 复制当前对象数据到目标对象(粘贴重置)
......
...@@ -339,6 +339,8 @@ ...@@ -339,6 +339,8 @@
</column> </column>
<column name="MATERIALIZEDVIEW" remarks="" type="VARCHAR(100)"> <column name="MATERIALIZEDVIEW" remarks="" type="VARCHAR(100)">
</column> </column>
<column name="REFRESHTIME" remarks="" type="DATETIME">
</column>
</createTable> </createTable>
</changeSet> </changeSet>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<![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.`MODELCFG`, t1.`MODELID`, t1.`MODELNAME` FROM `IBZMODEL` t1 ) t1 where modelid=#{id}]]>
</select> </select>
<select id="selectById" resultMap="MetaModelResultMap" databaseId="oracle"> <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>
<select id="selectById" resultMap="MetaModelResultMap" databaseId="postgresql"> <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}]]> <![CDATA[select t1.* from (SELECT t1.CODENAME, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1 ) t1 where modelid=#{id}]]>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="oracle"> <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> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="oracle"> <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> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
......
...@@ -2801,6 +2801,20 @@ ...@@ -2801,6 +2801,20 @@
"key_field":0, "key_field":0,
"show_order":11, "show_order":11,
"major_field":0 "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":[ "subEntitys":[
......
...@@ -74,6 +74,15 @@ public class MetaModelDTO extends DTOBase implements Serializable { ...@@ -74,6 +74,15 @@ public class MetaModelDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]") @Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String materializedView; 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] * 设置 [MODELNAME]
...@@ -107,6 +116,14 @@ public class MetaModelDTO extends DTOBase implements Serializable { ...@@ -107,6 +116,14 @@ public class MetaModelDTO extends DTOBase implements Serializable {
this.modify("materializedview",materializedView); this.modify("materializedview",materializedView);
} }
/**
* 设置 [REFRESHTIME]
*/
public void setRefreshTime(Timestamp refreshTime){
this.refreshTime = refreshTime ;
this.modify("refreshtime",refreshTime);
}
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册