提交 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>
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册