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

liuleizhi 发布系统代码

上级 d73329f8
......@@ -35,10 +35,14 @@
</i-col>
<i-col v-show="detailsModel.dscfg.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='dscfg' :itemRules="this.rules().dscfg" class='' :caption="$t('entities.dstdatasource.main_form.details.dscfg')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.dscfg.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.dscfg" :textareaId="this.$util.createUUID()" :disabled="detailsModel.dscfg.disabled" type='textarea' textareaStyle="height:200px;" ></input-box>
</app-form-item>
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${editor.name} [in template "TEMPLCODE_en_US" at line 1, column 45]
----
</i-col>
......
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<!--输出实体[DST_COMPONENT]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_component-49-1">
<createTable tableName="IBZCOMPONENT">
<column name="CID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_COMPONENT_CID"/>
</column>
<column name="CNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="APPID" remarks="" type="VARCHAR(100)">
</column>
<column name="CTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFG" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_CONFIG]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_config-23-2">
<createTable tableName="IBZCFG">
<column name="CFGID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_CONFIG_CFGID"/>
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFGTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="TARGETTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="USERID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFG" remarks="" type="TEXT(1048576)">
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_DATASOURCE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_datasource-24-3">
<createTable tableName="IBZDATASOURCE">
<column name="DSID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_DATASOURCE_DSID"/>
</column>
<column name="DSNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DSTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="DSCFG" remarks="" type="VARCHAR(4000)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_ROUTER]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_router-30-4">
<createTable tableName="IBZROUTER">
<column name="ROUTERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_ROUTER_ROUTERID"/>
</column>
<column name="ROUTERNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="APPID" remarks="" type="VARCHAR(100)">
</column>
<column name="ROUTERPATH" remarks="" type="VARCHAR(255)">
</column>
<column name="PARENTID" remarks="" type="VARCHAR(100)">
</column>
<column name="META" remarks="" type="TEXT(1048576)">
</column>
<column name="COMPONENT" remarks="" type="VARCHAR(2000)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_SYSTEM]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_system-36-5">
<createTable tableName="IBZPSSYSTEM">
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_SYSTEM_PSSYSTEMID"/>
</column>
<column name="PSSYSTEMNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSSTRUCTURE" remarks="" type="TEXT(1048576)">
</column>
<column name="APPS" remarks="" type="TEXT(1048576)">
</column>
<column name="MD5CHECK" remarks="" type="VARCHAR(100)">
</column>
<column name="SHOWORDER" remarks="" type="INT">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_VIEW]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-dst_view-36-6">
<createTable tableName="IBZVIEW">
<column name="VIEWID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_DST_VIEW_VIEWID"/>
</column>
<column name="VIEWNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="VIEWPATH" remarks="" type="VARCHAR(255)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="APPID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="CFG" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_DATASET]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_dataset-32-7">
<createTable tableName="IBZDATASET">
<column name="DATASETID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_DATASET_DATASETID"/>
</column>
<column name="DATASETNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="DSCODE" remarks="" type="TEXT(1048576)">
</column>
<column name="DSMODEL" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_ENTITY]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_entity-71-8">
<createTable tableName="IBZENTITY">
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_ENTITY_ENTITYID"/>
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="LOGICNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="TABLENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="DSID" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_FIELD]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_field-144-9">
<createTable tableName="IBZFIELD">
<column name="FIELDID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_FIELD_FIELDID"/>
</column>
<column name="FIELDNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELDLOGICNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="REFFIELDID" remarks="" type="VARCHAR(100)">
</column>
<column name="REFFIELDNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="RELATIONID" remarks="" type="VARCHAR(100)">
</column>
<column name="RELATIONNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="KEYFIELD" remarks="" type="INT">
</column>
<column name="MAJORFIELD" remarks="" type="INT">
</column>
<column name="UNIONKEY" remarks="" type="VARCHAR(70)">
</column>
<column name="FIELDTYPE" remarks="" type="VARCHAR(70)">
</column>
<column name="PREDEFINED" remarks="" type="VARCHAR(70)">
</column>
<column name="DICT" remarks="" type="VARCHAR(100)">
</column>
<column name="NULLABLE" remarks="" type="INT">
</column>
<column name="PHYSICALFIELD" remarks="" type="INT">
</column>
<column name="DATATYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="DATALENGTH" remarks="" type="INT">
</column>
<column name="DATAPRECI" remarks="" type="INT">
</column>
<column name="EXPRESSION" remarks="" type="VARCHAR(2000)">
</column>
<column name="EXTENSIONFIELD" remarks="" type="INT">
</column>
<column name="SHOWORDER" remarks="" type="INT">
</column>
</createTable>
</changeSet>
<!--输出实体[META_MODEL]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_model-14-10">
<createTable tableName="IBZMODEL">
<column name="MODELID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODEL_MODELID"/>
</column>
<column name="MODELNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="MODELCFG" remarks="" type="TEXT(1048576)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_MODULE]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_module-13-11">
<createTable tableName="IBZMODULE">
<column name="MODULEID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_MODULE_MODULEID"/>
</column>
<column name="MODULENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="SYSTEMID" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[META_RELATION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-meta_relation-72-12">
<createTable tableName="IBZRELATION">
<column name="RELATIONID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_META_RELATION_RELATIONID"/>
</column>
<column name="RELATIONNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="RELTYPE" remarks="" type="VARCHAR(100)">
</column>
<column name="CODENAME" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="ENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="REFENTITYID" remarks="" type="VARCHAR(100)">
</column>
<column name="REFENTITYNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="NESTEDNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="LOOKUP" remarks="" type="VARCHAR(1000)">
</column>
</createTable>
</changeSet>
<!--输出实体[DST_COMPONENT]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-dst_component-49-13">
<addForeignKeyConstraint baseColumnNames="ENTITYID" baseTableName="IBZCOMPONENT" constraintName="DER1N_DST_COMPONENT_META_ENTIT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITYID" referencedTableName="IBZENTITY" validate="true"/>
</changeSet>
<!--输出实体[DST_CONFIG]外键关系 -->
<!--输出实体[DST_DATASOURCE]外键关系 -->
<!--输出实体[DST_ROUTER]外键关系 -->
<!--输出实体[DST_SYSTEM]外键关系 -->
<!--输出实体[DST_VIEW]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-dst_view-36-14">
<addForeignKeyConstraint baseColumnNames="ENTITYID" baseTableName="IBZVIEW" constraintName="DER1N_DST_VIEW_META_ENTITY_ENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ENTITYID" referencedTableName="IBZENTITY" validate="true"/>
</changeSet>
<!--输出实体[META_DATASET]外键关系 -->
<!--输出实体[META_ENTITY]外键关系 -->
<!--输出实体[META_FIELD]外键关系 -->
<!--输出实体[META_MODEL]外键关系 -->
<!--输出实体[META_MODULE]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-meta_module-13-15">
<addForeignKeyConstraint baseColumnNames="SYSTEMID" baseTableName="IBZMODULE" constraintName="DER1N_META_MODULE_DST_SYSTEM_S" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PSSYSTEMID" referencedTableName="IBZPSSYSTEM" validate="true"/>
</changeSet>
<!--输出实体[META_RELATION]外键关系 -->
</databaseChangeLog>
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${dbinst.getUserName()} [in template "CODETEMPL_en_US" at line 28, column 24]
----
\ No newline at end of file
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="DstComponentResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`APPID`, t1.`CFG`, t1.`CID`, t1.`CNAME`, t1.`CODENAME`, t1.`CTYPE`, t1.`ENTITYID`, t11.`ENTITYNAME`, t1.`SYSTEMID` FROM `IBZCOMPONENT` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where cid=#{id}]]>
</select>
<select id="selectById" resultMap="DstComponentResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.APPID, t1.CFG, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where cid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="DstComponentResultMap" type="cn.ibizlab.core.lite.domain.DstComponent" autoMapping="true">
......@@ -61,10 +64,20 @@
<![CDATA[ SELECT t1.`APPID`, t1.`CID`, t1.`CNAME`, t1.`CODENAME`, t1.`CTYPE`, t1.`ENTITYID`, t11.`ENTITYNAME`, t1.`SYSTEMID` FROM `IBZCOMPONENT` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.APPID, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`APPID`, t1.`CFG`, t1.`CID`, t1.`CNAME`, t1.`CODENAME`, t1.`CTYPE`, t1.`ENTITYID`, t11.`ENTITYNAME`, t1.`SYSTEMID` FROM `IBZCOMPONENT` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.APPID, t1.CFG, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="DstConfigResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CFG`, t1.`CFGID`, t1.`CFGTYPE`, t1.`SYSTEMID`, t1.`TARGETTYPE`, t1.`UPDATEDATE`, t1.`USERID` FROM `IBZCFG` t1 ) t1 where cfgid=#{id}]]>
</select>
<select id="selectById" resultMap="DstConfigResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CFG, t1.CFGID, t1.CFGTYPE, t1.SYSTEMID, t1.TARGETTYPE, t1.UPDATEDATE, t1.USERID FROM IBZCFG t1 ) t1 where cfgid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="DstConfigResultMap" type="cn.ibizlab.core.lite.domain.DstConfig" autoMapping="true">
......@@ -40,10 +43,20 @@
<![CDATA[ SELECT t1.`CFGID`, t1.`CFGTYPE`, t1.`SYSTEMID`, t1.`TARGETTYPE`, t1.`UPDATEDATE`, t1.`USERID` FROM `IBZCFG` t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CFGID, t1.CFGTYPE, t1.SYSTEMID, t1.TARGETTYPE, t1.UPDATEDATE, t1.USERID FROM IBZCFG t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CFG`, t1.`CFGID`, t1.`CFGTYPE`, t1.`SYSTEMID`, t1.`TARGETTYPE`, t1.`UPDATEDATE`, t1.`USERID` FROM `IBZCFG` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CFG, t1.CFGID, t1.CFGTYPE, t1.SYSTEMID, t1.TARGETTYPE, t1.UPDATEDATE, t1.USERID FROM IBZCFG t1
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="DstDataSourceResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`DSCFG`, t1.`DSID`, t1.`DSNAME`, t1.`DSTYPE` FROM `IBZDATASOURCE` t1 ) t1 where dsid=#{id}]]>
</select>
<select id="selectById" resultMap="DstDataSourceResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.DSCFG, t1.DSID, t1.DSNAME, t1.DSTYPE FROM IBZDATASOURCE t1 ) t1 where dsid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="DstDataSourceResultMap" type="cn.ibizlab.core.lite.domain.DstDataSource" autoMapping="true">
......@@ -30,10 +33,20 @@
<![CDATA[ SELECT t1.`DSCFG`, t1.`DSID`, t1.`DSNAME`, t1.`DSTYPE` FROM `IBZDATASOURCE` t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.DSCFG, t1.DSID, t1.DSNAME, t1.DSTYPE FROM IBZDATASOURCE t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`DSCFG`, t1.`DSID`, t1.`DSNAME`, t1.`DSTYPE` FROM `IBZDATASOURCE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.DSCFG, t1.DSID, t1.DSNAME, t1.DSTYPE FROM IBZDATASOURCE t1
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="DstRouterResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`APPID`, t1.`COMPONENT`, t1.`META`, t1.`PARENTID`, t1.`ROUTERID`, t1.`ROUTERNAME`, t1.`ROUTERPATH`, t1.`SYSTEMID` FROM `IBZROUTER` t1 ) t1 where routerid=#{id}]]>
</select>
<select id="selectById" resultMap="DstRouterResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.APPID, t1.COMPONENT, t1.META, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID FROM IBZROUTER t1 ) t1 where routerid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="DstRouterResultMap" type="cn.ibizlab.core.lite.domain.DstRouter" autoMapping="true">
......@@ -60,10 +63,20 @@
<![CDATA[ SELECT t1.`APPID`, t1.`COMPONENT`, t1.`PARENTID`, t1.`ROUTERID`, t1.`ROUTERNAME`, t1.`ROUTERPATH`, t1.`SYSTEMID` FROM `IBZROUTER` t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.APPID, t1.COMPONENT, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID FROM IBZROUTER t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`APPID`, t1.`COMPONENT`, t1.`META`, t1.`PARENTID`, t1.`ROUTERID`, t1.`ROUTERNAME`, t1.`ROUTERPATH`, t1.`SYSTEMID` FROM `IBZROUTER` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.APPID, t1.COMPONENT, t1.META, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID FROM IBZROUTER t1
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="DstViewResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`APPID`, t1.`CFG`, t1.`ENTITYID`, t11.`ENTITYNAME`, t1.`SYSTEMID`, t1.`VIEWID`, t1.`VIEWNAME`, t1.`VIEWPATH` FROM `IBZVIEW` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where viewid=#{id}]]>
</select>
<select id="selectById" resultMap="DstViewResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.APPID, t1.CFG, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.VIEWID, t1.VIEWNAME, t1.VIEWPATH FROM IBZVIEW t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where viewid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="DstViewResultMap" type="cn.ibizlab.core.lite.domain.DstView" autoMapping="true">
......@@ -61,10 +64,20 @@
<![CDATA[ SELECT t1.`APPID`, t1.`ENTITYID`, t11.`ENTITYNAME`, t1.`SYSTEMID`, t1.`VIEWID`, t1.`VIEWNAME`, t1.`VIEWPATH` FROM `IBZVIEW` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.APPID, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.VIEWID, t1.VIEWNAME, t1.VIEWPATH FROM IBZVIEW t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`APPID`, t1.`CFG`, t1.`ENTITYID`, t11.`ENTITYNAME`, t1.`SYSTEMID`, t1.`VIEWID`, t1.`VIEWNAME`, t1.`VIEWPATH` FROM `IBZVIEW` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.APPID, t1.CFG, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.VIEWID, t1.VIEWNAME, t1.VIEWPATH FROM IBZVIEW t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="MetaDataSetResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`DATASETID`, t1.`DATASETNAME`, t1.`DSCODE`, t1.`DSMODEL`, t1.`ENTITYID`, t1.`ENTITYNAME` FROM `IBZDATASET` t1 ) t1 where datasetid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaDataSetResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.DATASETID, t1.DATASETNAME, t1.DSCODE, t1.DSMODEL, t1.ENTITYID, t1.ENTITYNAME FROM IBZDATASET t1 ) t1 where datasetid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MetaDataSetResultMap" type="cn.ibizlab.core.lite.domain.MetaDataSet" autoMapping="true">
......@@ -40,10 +43,20 @@
<![CDATA[ SELECT t1.`CODENAME`, t1.`DATASETID`, t1.`DATASETNAME`, t1.`ENTITYID`, t1.`ENTITYNAME` FROM `IBZDATASET` t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.DATASETID, t1.DATASETNAME, t1.ENTITYID, t1.ENTITYNAME FROM IBZDATASET t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`DATASETID`, t1.`DATASETNAME`, t1.`DSCODE`, t1.`DSMODEL`, t1.`ENTITYID`, t1.`ENTITYNAME` FROM `IBZDATASET` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.DATASETID, t1.DATASETNAME, t1.DSCODE, t1.DSMODEL, t1.ENTITYID, t1.ENTITYNAME FROM IBZDATASET t1
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="MetaEntityResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOGICNAME`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME` FROM `IBZENTITY` t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID ) t1 where entityid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaEntityResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.DSID, t21.DSNAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOGICNAME, t1.SYSTEMID, t11.PSSYSTEMNAME AS SYSTEMNAME, t1.TABLENAME FROM IBZENTITY t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID ) t1 where entityid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MetaEntityResultMap" type="cn.ibizlab.core.lite.domain.MetaEntity" autoMapping="true">
......@@ -50,10 +53,20 @@
<![CDATA[ SELECT t1.`CODENAME`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOGICNAME`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME` FROM `IBZENTITY` t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.DSID, t21.DSNAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOGICNAME, t1.SYSTEMID, t11.PSSYSTEMNAME AS SYSTEMNAME, t1.TABLENAME FROM IBZENTITY t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`DSID`, t21.`DSNAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOGICNAME`, t1.`SYSTEMID`, t11.`PSSYSTEMNAME` AS `SYSTEMNAME`, t1.`TABLENAME` FROM `IBZENTITY` t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.DSID, t21.DSNAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOGICNAME, t1.SYSTEMID, t11.PSSYSTEMNAME AS SYSTEMNAME, t1.TABLENAME FROM IBZENTITY t1 LEFT JOIN IBZPSSYSTEM t11 ON t1.SYSTEMID = t11.PSSYSTEMID LEFT JOIN IBZDATASOURCE t21 ON t1.DSID = t21.DSID
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="MetaFieldResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`DATALENGTH`, t1.`DATAPRECI`, t1.`DATATYPE`, t1.`DICT`, t11.`CODENAME` AS `ENTITYCODENAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXPRESSION`, t1.`EXTENSIONFIELD`, t1.`FIELDID`, t1.`FIELDLOGICNAME`, t1.`FIELDNAME`, concat(t1.`FIELDNAME`,'-',t1.`FIELDLOGICNAME`,'[',t1.`ENTITYNAME`,']') AS `FIELDSHOWNAME`, t1.`FIELDTYPE`, concat(t1.`ENTITYNAME`,'.',t1.`FIELDNAME`) AS `FIELDUNINAME`, t1.`KEYFIELD`, t1.`MAJORFIELD`, t1.`NULLABLE`, t1.`PHYSICALFIELD`, t1.`PREDEFINED`, t21.`REFENTITYNAME`, t1.`REFFIELDID`, t1.`REFFIELDNAME`, t21.`CODENAME` AS `RELATIONCODENAME`, t1.`RELATIONID`, t1.`RELATIONNAME`, t1.`SHOWORDER`, t11.`SYSTEMID`, t1.`UNIONKEY` FROM `IBZFIELD` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID ) t1 where fieldid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaFieldResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.DATALENGTH, t1.DATAPRECI, t1.DATATYPE, t1.DICT, t11.CODENAME AS ENTITYCODENAME, t1.ENTITYID, t1.ENTITYNAME, t1.EXPRESSION, t1.EXTENSIONFIELD, t1.FIELDID, t1.FIELDLOGICNAME, t1.FIELDNAME, concat(t1.FIELDNAME,'-',t1.FIELDLOGICNAME,'[',t1.ENTITYNAME,']') AS FIELDSHOWNAME, t1.FIELDTYPE, concat(t1.ENTITYNAME,'.',t1.FIELDNAME) AS FIELDUNINAME, t1.KEYFIELD, t1.MAJORFIELD, t1.NULLABLE, t1.PHYSICALFIELD, t1.PREDEFINED, t21.REFENTITYNAME, t1.REFFIELDID, t1.REFFIELDNAME, t21.CODENAME AS RELATIONCODENAME, t1.RELATIONID, t1.RELATIONNAME, t1.SHOWORDER, t11.SYSTEMID, t1.UNIONKEY FROM IBZFIELD t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID ) t1 where fieldid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MetaFieldResultMap" type="cn.ibizlab.core.lite.domain.MetaField" autoMapping="true">
......@@ -60,10 +63,20 @@
<![CDATA[ SELECT t1.`CODENAME`, t1.`DATALENGTH`, t1.`DATAPRECI`, t1.`DATATYPE`, t1.`DICT`, t11.`CODENAME` AS `ENTITYCODENAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXPRESSION`, t1.`EXTENSIONFIELD`, t1.`FIELDID`, t1.`FIELDLOGICNAME`, t1.`FIELDNAME`, concat(t1.`FIELDNAME`,'-',t1.`FIELDLOGICNAME`,'[',t1.`ENTITYNAME`,']') AS `FIELDSHOWNAME`, t1.`FIELDTYPE`, concat(t1.`ENTITYNAME`,'.',t1.`FIELDNAME`) AS `FIELDUNINAME`, t1.`KEYFIELD`, t1.`MAJORFIELD`, t1.`NULLABLE`, t1.`PHYSICALFIELD`, t1.`PREDEFINED`, t21.`REFENTITYNAME`, t1.`REFFIELDID`, t1.`REFFIELDNAME`, t21.`CODENAME` AS `RELATIONCODENAME`, t1.`RELATIONID`, t1.`RELATIONNAME`, t1.`SHOWORDER`, t11.`SYSTEMID`, t1.`UNIONKEY` FROM `IBZFIELD` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.DATALENGTH, t1.DATAPRECI, t1.DATATYPE, t1.DICT, t11.CODENAME AS ENTITYCODENAME, t1.ENTITYID, t1.ENTITYNAME, t1.EXPRESSION, t1.EXTENSIONFIELD, t1.FIELDID, t1.FIELDLOGICNAME, t1.FIELDNAME, concat(t1.FIELDNAME,'-',t1.FIELDLOGICNAME,'[',t1.ENTITYNAME,']') AS FIELDSHOWNAME, t1.FIELDTYPE, concat(t1.ENTITYNAME,'.',t1.FIELDNAME) AS FIELDUNINAME, t1.KEYFIELD, t1.MAJORFIELD, t1.NULLABLE, t1.PHYSICALFIELD, t1.PREDEFINED, t21.REFENTITYNAME, t1.REFFIELDID, t1.REFFIELDNAME, t21.CODENAME AS RELATIONCODENAME, t1.RELATIONID, t1.RELATIONNAME, t1.SHOWORDER, t11.SYSTEMID, t1.UNIONKEY FROM IBZFIELD t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`DATALENGTH`, t1.`DATAPRECI`, t1.`DATATYPE`, t1.`DICT`, t11.`CODENAME` AS `ENTITYCODENAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`EXPRESSION`, t1.`EXTENSIONFIELD`, t1.`FIELDID`, t1.`FIELDLOGICNAME`, t1.`FIELDNAME`, concat(t1.`FIELDNAME`,'-',t1.`FIELDLOGICNAME`,'[',t1.`ENTITYNAME`,']') AS `FIELDSHOWNAME`, t1.`FIELDTYPE`, concat(t1.`ENTITYNAME`,'.',t1.`FIELDNAME`) AS `FIELDUNINAME`, t1.`KEYFIELD`, t1.`MAJORFIELD`, t1.`NULLABLE`, t1.`PHYSICALFIELD`, t1.`PREDEFINED`, t21.`REFENTITYNAME`, t1.`REFFIELDID`, t1.`REFFIELDNAME`, t21.`CODENAME` AS `RELATIONCODENAME`, t1.`RELATIONID`, t1.`RELATIONNAME`, t1.`SHOWORDER`, t11.`SYSTEMID`, t1.`UNIONKEY` FROM `IBZFIELD` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.DATALENGTH, t1.DATAPRECI, t1.DATATYPE, t1.DICT, t11.CODENAME AS ENTITYCODENAME, t1.ENTITYID, t1.ENTITYNAME, t1.EXPRESSION, t1.EXTENSIONFIELD, t1.FIELDID, t1.FIELDLOGICNAME, t1.FIELDNAME, concat(t1.FIELDNAME,'-',t1.FIELDLOGICNAME,'[',t1.ENTITYNAME,']') AS FIELDSHOWNAME, t1.FIELDTYPE, concat(t1.ENTITYNAME,'.',t1.FIELDNAME) AS FIELDUNINAME, t1.KEYFIELD, t1.MAJORFIELD, t1.NULLABLE, t1.PHYSICALFIELD, t1.PREDEFINED, t21.REFENTITYNAME, t1.REFFIELDID, t1.REFFIELDNAME, t21.CODENAME AS RELATIONCODENAME, t1.RELATIONID, t1.RELATIONNAME, t1.SHOWORDER, t11.SYSTEMID, t1.UNIONKEY FROM IBZFIELD t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="MetaModelResultMap" databaseId="mysql">
<![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}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MetaModelResultMap" type="cn.ibizlab.core.lite.domain.MetaModel" autoMapping="true">
......@@ -31,10 +34,20 @@
<![CDATA[ SELECT t1.`CODENAME`, t1.`MODELID`, t1.`MODELNAME` FROM `IBZMODEL` t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`MODELCFG`, t1.`MODELID`, t1.`MODELNAME` FROM `IBZMODEL` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="MetaModuleResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`MODULEID`, t1.`MODULENAME`, t1.`SYSTEMID` FROM `IBZMODULE` t1 ) t1 where moduleid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaModuleResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.MODULEID, t1.MODULENAME, t1.SYSTEMID FROM IBZMODULE t1 ) t1 where moduleid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MetaModuleResultMap" type="cn.ibizlab.core.lite.domain.MetaModule" autoMapping="true">
......@@ -41,10 +44,20 @@
<![CDATA[ SELECT t1.`CODENAME`, t1.`MODULEID`, t1.`MODULENAME`, t1.`SYSTEMID` FROM `IBZMODULE` t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.MODULEID, t1.MODULENAME, t1.SYSTEMID FROM IBZMODULE t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`MODULEID`, t1.`MODULENAME`, t1.`SYSTEMID` FROM `IBZMODULE` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.MODULEID, t1.MODULENAME, t1.SYSTEMID FROM IBZMODULE t1
]]>
</sql>
</mapper>
......@@ -7,6 +7,9 @@
<select id="selectById" resultMap="MetaRelationshipResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CODENAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOOKUP`, t1.`NESTEDNAME`, t1.`REFENTITYID`, t1.`REFENTITYNAME`, t1.`RELATIONID`, t1.`RELATIONNAME`, t1.`RELTYPE`, t11.`SYSTEMID` FROM `IBZRELATION` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where relationid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaRelationshipResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOOKUP, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where relationid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MetaRelationshipResultMap" type="cn.ibizlab.core.lite.domain.MetaRelationship" autoMapping="true">
......@@ -52,10 +55,20 @@
<![CDATA[ SELECT t1.`CODENAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOOKUP`, t1.`NESTEDNAME`, t1.`REFENTITYID`, t1.`REFENTITYNAME`, t1.`RELATIONID`, t1.`RELATIONNAME`, t1.`RELTYPE`, t11.`SYSTEMID` FROM `IBZRELATION` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOOKUP, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CODENAME`, t1.`ENTITYID`, t1.`ENTITYNAME`, t1.`LOOKUP`, t1.`NESTEDNAME`, t1.`REFENTITYID`, t1.`REFENTITYNAME`, t1.`RELATIONID`, t1.`RELATIONNAME`, t1.`RELTYPE`, t11.`SYSTEMID` FROM `IBZRELATION` t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.CODENAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOOKUP, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
</mapper>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册