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

ibiz4j 发布系统代码 [ibz-dst,应用]

上级 cf079e46
......@@ -4,7 +4,7 @@
<!--输出实体[DA_BUILD]数据结构 -->
<changeSet author="root" id="tab-da_build-1-1">
<changeSet author="a_A_5d9d78509" id="tab-da_build-1-1">
<createTable tableName="IBZDABUILD">
<column name="BUILDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_BUILD_BUILDID"/>
......@@ -32,7 +32,7 @@
<!--输出实体[DA_CHART]数据结构 -->
<changeSet author="root" id="tab-da_chart-1-2">
<changeSet author="a_A_5d9d78509" id="tab-da_chart-1-2">
<createTable tableName="IBZDACHART">
<column name="CHARTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_CHART_CHARTID"/>
......@@ -54,7 +54,7 @@
<!--输出实体[DA_METRIC]数据结构 -->
<changeSet author="root" id="tab-da_metric-1-3">
<changeSet author="a_A_5d9d78509" id="tab-da_metric-1-3">
<createTable tableName="IBZDAMETRIC">
<column name="DA_METRICID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_METRIC_DA_METRICID"/>
......@@ -82,7 +82,7 @@
<!--输出实体[DA_REPORT]数据结构 -->
<changeSet author="root" id="tab-da_report-1-4">
<changeSet author="a_A_5d9d78509" id="tab-da_report-1-4">
<createTable tableName="IBZDAREPORT">
<column name="REPORTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DA_REPORT_REPORTID"/>
......@@ -102,7 +102,7 @@
<!--输出实体[DICT_CATALOG]数据结构 -->
<changeSet author="root" id="tab-dict_catalog-6-5">
<changeSet author="a_A_5d9d78509" id="tab-dict_catalog-6-5">
<createTable tableName="IBZDICTCATALOG">
<column name="CID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DICT_CATALOG_CID"/>
......@@ -126,7 +126,7 @@
<!--输出实体[DICT_OPTION]数据结构 -->
<changeSet author="root" id="tab-dict_option-5-6">
<changeSet author="a_A_5d9d78509" id="tab-dict_option-5-6">
<createTable tableName="IBZDICTOPTION">
<column name="VKEY" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DICT_OPTION_VKEY"/>
......@@ -166,7 +166,7 @@
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet author="root" id="tab-dst_datasource-1-7">
<changeSet author="a_A_5d9d78509" id="tab-dst_datasource-1-7">
<createTable tableName="IBZDATASOURCE">
<column name="DSID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/>
......@@ -182,7 +182,7 @@
<!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet author="root" id="tab-dst_system-1-8">
<changeSet author="a_A_5d9d78509" id="tab-dst_system-1-8">
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/>
......@@ -202,7 +202,7 @@
<!--输出实体[RU_EXECLOG]数据结构 -->
<changeSet author="root" id="tab-ru_execlog-1-9">
<changeSet author="a_A_5d9d78509" id="tab-ru_execlog-1-9">
<createTable tableName="IBZRULELOG">
<column name="RU_EXECLOGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_EXECLOG_RU_EXECLOGID"/>
......@@ -232,7 +232,7 @@
<!--输出实体[RU_EXECRESULT]数据结构 -->
<changeSet author="root" id="tab-ru_execresult-1-10">
<changeSet author="a_A_5d9d78509" id="tab-ru_execresult-1-10">
<createTable tableName="IBZRULERESULT">
<column name="RU_EXECRESULTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_EXECRESULT_RU_EXECRESULT"/>
......@@ -272,7 +272,7 @@
<!--输出实体[META_DATASET]数据结构 -->
<changeSet author="root" id="tab-meta_dataset-1-11">
<changeSet author="a_A_5d9d78509" id="tab-meta_dataset-1-11">
<createTable tableName="IBZDATASET">
<column name="DATASETID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/>
......@@ -294,7 +294,7 @@
<!--输出实体[META_ENTITY]数据结构 -->
<changeSet author="root" id="tab-meta_entity-5-12">
<changeSet author="a_A_5d9d78509" id="tab-meta_entity-5-12">
<createTable tableName="IBZENTITY">
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/>
......@@ -326,7 +326,7 @@
<!--输出实体[META_FIELD]数据结构 -->
<changeSet author="root" id="tab-meta_field-1-13">
<changeSet author="a_A_5d9d78509" id="tab-meta_field-1-13">
<createTable tableName="IBZFIELD">
<column name="FIELDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/>
......@@ -390,7 +390,7 @@
<!--输出实体[META_MODEL]数据结构 -->
<changeSet author="root" id="tab-meta_model-1-14">
<changeSet author="a_A_5d9d78509" id="tab-meta_model-1-14">
<createTable tableName="IBZMODEL">
<column name="MODELID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/>
......@@ -416,7 +416,7 @@
<!--输出实体[META_MODULE]数据结构 -->
<changeSet author="root" id="tab-meta_module-1-15">
<changeSet author="a_A_5d9d78509" id="tab-meta_module-1-15">
<createTable tableName="IBZMODULE">
<column name="MODULEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODULE_MODULEID"/>
......@@ -434,7 +434,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet author="root" id="tab-meta_relation-1-16">
<changeSet author="a_A_5d9d78509" id="tab-meta_relation-1-16">
<createTable tableName="IBZRELATION">
<column name="RELATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
......@@ -466,7 +466,7 @@
<!--输出实体[RU_ENGINE]数据结构 -->
<changeSet author="root" id="tab-ru_engine-1-17">
<changeSet author="a_A_5d9d78509" id="tab-ru_engine-1-17">
<createTable tableName="IBZRULEENGINE">
<column name="ENGINEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_ENGINE_ENGINEID"/>
......@@ -494,7 +494,7 @@
<!--输出实体[RU_ITEM]数据结构 -->
<changeSet author="root" id="tab-ru_item-1-18">
<changeSet author="a_A_5d9d78509" id="tab-ru_item-1-18">
<createTable tableName="IBZRULE">
<column name="RULEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_RU_ITEM_RULEID"/>
......@@ -530,7 +530,7 @@
<!--输出实体[ETL_TABLE_SYNC]数据结构 -->
<changeSet author="root" id="tab-etl_table_sync-51-19">
<changeSet author="a_A_5d9d78509" id="tab-etl_table_sync-51-19">
<createTable tableName="IBZTABLESYNC">
<column name="SYNCID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_ETL_TABLE_SYNC_SYNCID"/>
......@@ -581,13 +581,13 @@
<!--输出实体[DA_BUILD]外键关系 -->
<!--输出实体[DA_CHART]外键关系 -->
<!--输出实体[DA_METRIC]外键关系 -->
<changeSet author="root" id="fk-da_metric-1-20">
<changeSet author="a_A_5d9d78509" id="fk-da_metric-1-20">
<addForeignKeyConstraint baseColumnNames="BUILDID" baseTableName="IBZDAMETRIC" constraintName="DER1N_DA_METRIC_DA_BUILD_BUILD" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="BUILDID" referencedTableName="IBZDABUILD" validate="true"/>
</changeSet>
<!--输出实体[DA_REPORT]外键关系 -->
<!--输出实体[DICT_CATALOG]外键关系 -->
<!--输出实体[DICT_OPTION]外键关系 -->
<changeSet author="root" id="fk-dict_option-5-21">
<changeSet author="a_A_5d9d78509" id="fk-dict_option-5-21">
<addForeignKeyConstraint baseColumnNames="CID" baseTableName="IBZDICTOPTION" constraintName="DER1N_DICT_OPTION_DICT_CATALOG" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CID" referencedTableName="IBZDICTCATALOG" validate="true"/>
</changeSet>
<!--输出实体[DST_DATASOURCE]外键关系 -->
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="MetaEntityResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`CREATEDATE`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXTPARAMS`, t1.`LOGICNAME`, t1.`MODULEID`, t31.`MODULENAME`, t1.`SHOWORDER`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME`, t1.`UPDATEDATE` FROM `IBZENTITY` t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID LEFT JOIN IBZMODULE t31 ON t1.MODULEID = t31.MODULEID ) t1 where entityid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`CREATEDATE`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXTPARAMS`, t1.`LOGICNAME`, t1.`MODULEID`, t31.`MODULENAME`, t1.`SHOWORDER`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME`, t1.`UPDATEDATE` FROM `IBZENTITY` t1 LEFT JOIN `IBZPSSYSTEM` t11 ON t1.`SYSTEMID` = t11.`PSSYSTEMID` LEFT JOIN `IBZDATASOURCE` t21 ON t1.`DSID` = t21.`DSID` LEFT JOIN `IBZMODULE` t31 ON t1.`MODULEID` = t31.`MODULEID` ) t1 where entityid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaEntityResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, t1.DSID, t21.DSNAME, t1.ENTITYID, t1.ENTITYNAME, t1.EXTPARAMS, t1.LOGICNAME, t1.MODULEID, t31.MODULENAME, t1.SHOWORDER, t1.SYSTEMID, t11.PSSYSTEMNAME AS SYSTEMNAME, t1.TABLENAME, t1.UPDATEDATE FROM IBZENTITY t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID LEFT JOIN IBZMODULE t31 ON t1.MODULEID = t31.MODULEID ) t1 where entityid=#{id}]]>
......@@ -63,7 +63,7 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`CREATEDATE`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOGICNAME`, t1.`MODULEID`, t31.`MODULENAME`, t1.`SHOWORDER`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME`, t1.`UPDATEDATE` FROM `IBZENTITY` t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID LEFT JOIN IBZMODULE t31 ON t1.MODULEID = t31.MODULEID
<![CDATA[ SELECT t1.`CODENAME`, t1.`CREATEDATE`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOGICNAME`, t1.`MODULEID`, t31.`MODULENAME`, t1.`SHOWORDER`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME`, t1.`UPDATEDATE` FROM `IBZENTITY` t1 LEFT JOIN `IBZPSSYSTEM` t11 ON t1.`SYSTEMID` = t11.`PSSYSTEMID` LEFT JOIN `IBZDATASOURCE` t21 ON t1.`DSID` = t21.`DSID` LEFT JOIN `IBZMODULE` t31 ON t1.`MODULEID` = t31.`MODULEID`
]]>
</sql>
<!--数据查询[Default]-->
......@@ -78,7 +78,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`CREATEDATE`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXTPARAMS`, t1.`LOGICNAME`, t1.`MODULEID`, t31.`MODULENAME`, t1.`SHOWORDER`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME`, t1.`UPDATEDATE` FROM `IBZENTITY` t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID LEFT JOIN IBZMODULE t31 ON t1.MODULEID = t31.MODULEID
<![CDATA[ SELECT t1.`CODENAME`, t1.`CREATEDATE`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXTPARAMS`, t1.`LOGICNAME`, t1.`MODULEID`, t31.`MODULENAME`, t1.`SHOWORDER`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME`, t1.`UPDATEDATE` FROM `IBZENTITY` t1 LEFT JOIN `IBZPSSYSTEM` t11 ON t1.`SYSTEMID` = t11.`PSSYSTEMID` LEFT JOIN `IBZDATASOURCE` t21 ON t1.`DSID` = t21.`DSID` LEFT JOIN `IBZMODULE` t31 ON t1.`MODULEID` = t31.`MODULEID`
]]>
</sql>
<!--数据查询[View]-->
......
......@@ -4,6 +4,9 @@
<mapper namespace="cn.ibizlab.core.lite.mapper.TableSyncMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="TableSyncResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`DSID`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`ETLTIMESTAMP`, t1.`LASTENDTIME`, t1.`LASTREAD`, t1.`LASTRUNRESULT`, t1.`LASTRUNTIME`, t1.`LASTWRITE`, t1.`MAPPINGCFG`, t1.`RUNCRON`, t1.`RUNORDER`, t1.`SRCDSID`, t1.`SRCENTITYID`, t1.`SRCENTITYNAME`, t1.`SRCEXP`, t1.`SYNCGROUP`, t1.`SYNCID`, t1.`SYNCNAME`, t1.`SYSTEMID`, t1.`UPDATEDATE` FROM `IBZTABLESYNC` t1 ) t1 where syncid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="TableSyncResultMap" type="cn.ibizlab.core.lite.domain.TableSync" autoMapping="true">
......@@ -48,5 +51,15 @@
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`DSID`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`ETLTIMESTAMP`, t1.`LASTENDTIME`, t1.`LASTREAD`, t1.`LASTRUNRESULT`, t1.`LASTRUNTIME`, t1.`LASTWRITE`, t1.`RUNCRON`, t1.`RUNORDER`, t1.`SRCDSID`, t1.`SRCENTITYID`, t1.`SRCENTITYNAME`, t1.`SYNCGROUP`, t1.`SYNCID`, t1.`SYNCNAME`, t1.`SYSTEMID`, t1.`UPDATEDATE` FROM `IBZTABLESYNC` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`DSID`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`ETLTIMESTAMP`, t1.`LASTENDTIME`, t1.`LASTREAD`, t1.`LASTRUNRESULT`, t1.`LASTRUNTIME`, t1.`LASTWRITE`, t1.`MAPPINGCFG`, t1.`RUNCRON`, t1.`RUNORDER`, t1.`SRCDSID`, t1.`SRCENTITYID`, t1.`SRCENTITYNAME`, t1.`SRCEXP`, t1.`SYNCGROUP`, t1.`SYNCID`, t1.`SYNCNAME`, t1.`SYSTEMID`, t1.`UPDATEDATE` FROM `IBZTABLESYNC` t1
]]>
</sql>
</mapper>
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="RuleEngineResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`ENGINEID`, t1.`ENGINENAME`, t1.`EXECSTATE`, t1.`EXTPARAMS`, t1.`LASTRUNTIME`, t1.`MODELID`, t1.`MODELNAME`, t1.`PROCESSED`, t1.`RULEGROUP`, t11.`SYSTEMID`, t1.`TOTAL` FROM `IBZRULEENGINE` t1 LEFT JOIN IBZMODEL t11 ON t1.MODELID = t11.MODELID ) t1 where engineid=#{id}]]>
<![CDATA[select t1.* from (SELECT t1.`ENGINEID`, t1.`ENGINENAME`, t1.`EXECSTATE`, t1.`EXTPARAMS`, t1.`LASTRUNTIME`, t1.`MODELID`, t1.`MODELNAME`, t1.`PROCESSED`, t1.`RULEGROUP`, t11.`SYSTEMID`, t1.`TOTAL` FROM `IBZRULEENGINE` t1 LEFT JOIN `IBZMODEL` t11 ON t1.`MODELID` = t11.`MODELID` ) t1 where engineid=#{id}]]>
</select>
<select id="selectById" resultMap="RuleEngineResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.ENGINEID, t1.ENGINENAME, t1.EXECSTATE, t1.EXTPARAMS, t1.LASTRUNTIME, t1.MODELID, t1.MODELNAME, t1.PROCESSED, t1.RULEGROUP, t11.SYSTEMID, t1.TOTAL FROM IBZRULEENGINE t1 LEFT JOIN IBZMODEL t11 ON t1.MODELID = t11.MODELID ) t1 where engineid=#{id}]]>
......@@ -45,7 +45,7 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`ENGINEID`, t1.`ENGINENAME`, t1.`EXECSTATE`, t1.`LASTRUNTIME`, t1.`MODELID`, t1.`MODELNAME`, t1.`PROCESSED`, t1.`RULEGROUP`, t11.`SYSTEMID`, t1.`TOTAL` FROM `IBZRULEENGINE` t1 LEFT JOIN IBZMODEL t11 ON t1.MODELID = t11.MODELID
<![CDATA[ SELECT t1.`ENGINEID`, t1.`ENGINENAME`, t1.`EXECSTATE`, t1.`LASTRUNTIME`, t1.`MODELID`, t1.`MODELNAME`, t1.`PROCESSED`, t1.`RULEGROUP`, t11.`SYSTEMID`, t1.`TOTAL` FROM `IBZRULEENGINE` t1 LEFT JOIN `IBZMODEL` t11 ON t1.`MODELID` = t11.`MODELID`
]]>
</sql>
<!--数据查询[Default]-->
......@@ -60,7 +60,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ENGINEID`, t1.`ENGINENAME`, t1.`EXECSTATE`, t1.`EXTPARAMS`, t1.`LASTRUNTIME`, t1.`MODELID`, t1.`MODELNAME`, t1.`PROCESSED`, t1.`RULEGROUP`, t11.`SYSTEMID`, t1.`TOTAL` FROM `IBZRULEENGINE` t1 LEFT JOIN IBZMODEL t11 ON t1.MODELID = t11.MODELID
<![CDATA[ SELECT t1.`ENGINEID`, t1.`ENGINENAME`, t1.`EXECSTATE`, t1.`EXTPARAMS`, t1.`LASTRUNTIME`, t1.`MODELID`, t1.`MODELNAME`, t1.`PROCESSED`, t1.`RULEGROUP`, t11.`SYSTEMID`, t1.`TOTAL` FROM `IBZRULEENGINE` t1 LEFT JOIN `IBZMODEL` t11 ON t1.`MODELID` = t11.`MODELID`
]]>
</sql>
<!--数据查询[View]-->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册