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

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

上级 40d55c6a
......@@ -52,7 +52,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CATEGORY, t1.CREATE_DEPT, t1.CREATE_TIME, t1.CREATE_USER, t1.ID, t1.IS_DELETED, t1.PASSWORD, t1.STATUS, t1.TITLE, t1.UPDATE_TIME, t1.UPDATE_USER FROM blade_visual t1
<![CDATA[ SELECT t1.BACKGROUND_URL, t1.CATEGORY, t1.CREATE_DEPT, t1.CREATE_TIME, t1.CREATE_USER, t1.ID, t1.IS_DELETED, t1.PASSWORD, t1.STATUS, t1.TITLE, t1.UPDATE_TIME, t1.UPDATE_USER FROM blade_visual t1
WHERE t1.IS_DELETED = 0
]]>
</sql>
......
......@@ -49,7 +49,7 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CATEGORY_KEY, t1.CATEGORY_VALUE, t1.ID, t1.IS_DELETED FROM blade_visual_category t1
WHERE t1.IS_DELETED = 1
WHERE t1.IS_DELETED = 0
]]>
</sql>
<!--数据查询[View]-->
......@@ -67,7 +67,7 @@
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CATEGORY_KEY, t1.CATEGORY_VALUE, t1.ID, t1.IS_DELETED FROM blade_visual_category t1
WHERE t1.IS_DELETED = 1
WHERE t1.IS_DELETED = 0
]]>
</sql>
</mapper>
......
......@@ -11,7 +11,7 @@
<![CDATA[select t1.* from (SELECT t1.APPID, t1.CFG, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where cid=#{id}]]>
</select>
<select id="selectById" resultMap="DstComponentResultMap" databaseId="postgresql">
<![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}]]>
<![CDATA[select t1.* from (SELECT t1.APPID, t1.CFG, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where cid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -74,7 +74,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![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
<![CDATA[ SELECT t1.APPID, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
......@@ -89,7 +89,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![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
<![CDATA[ SELECT t1.APPID, t1.CFG, t1.CID, t1.CNAME, t1.CODENAME, t1.CTYPE, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZCOMPONENT t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
</mapper>
......
......@@ -11,7 +11,7 @@
<![CDATA[select t1.* from (SELECT t1.APPID, t1.COMPONENT, t1.META, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID, t1.UPDATEDATE FROM IBZROUTER t1 ) t1 where routerid=#{id}]]>
</select>
<select id="selectById" resultMap="DstRouterResultMap" databaseId="postgresql">
<![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}]]>
<![CDATA[select t1.* from (SELECT t1.APPID, t1.COMPONENT, t1.META, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID, t1.UPDATEDATE FROM IBZROUTER t1 ) t1 where routerid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -73,7 +73,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.APPID, t1.COMPONENT, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID FROM IBZROUTER t1
<![CDATA[ SELECT t1.APPID, t1.COMPONENT, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID, t1.UPDATEDATE FROM IBZROUTER t1
]]>
</sql>
<!--数据查询[View]-->
......@@ -88,7 +88,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.APPID, t1.COMPONENT, t1.META, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID FROM IBZROUTER t1
<![CDATA[ SELECT t1.APPID, t1.COMPONENT, t1.META, t1.PARENTID, t1.ROUTERID, t1.ROUTERNAME, t1.ROUTERPATH, t1.SYSTEMID, t1.UPDATEDATE FROM IBZROUTER t1
]]>
</sql>
</mapper>
......
......@@ -11,7 +11,7 @@
<![CDATA[select t1.* from (SELECT t1.APPID, t1.CFG, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE, 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="postgresql">
<![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}]]>
<![CDATA[select t1.* from (SELECT t1.APPID, t1.CFG, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE, 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自动处理映射关系 -->
......@@ -74,7 +74,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![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
<![CDATA[ SELECT t1.APPID, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE, t1.VIEWID, t1.VIEWNAME, t1.VIEWPATH FROM IBZVIEW t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
......@@ -89,7 +89,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![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
<![CDATA[ SELECT t1.APPID, t1.CFG, t1.ENTITYID, t11.ENTITYNAME, t1.SYSTEMID, t1.UPDATEDATE, t1.VIEWID, t1.VIEWNAME, t1.VIEWPATH FROM IBZVIEW t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
</mapper>
......
......@@ -11,7 +11,7 @@
<![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="postgresql">
<![CDATA[select t1.* from (SELECT t1.CODENAME, 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 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>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -73,7 +73,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CODENAME, t1.DSID, t21.DSNAME, t1.ENTITYID, t1.ENTITYNAME, t1.LOGICNAME, t1.MODULEID, t31.MODULENAME, t1.SHOWORDER, 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 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>
<!--数据查询[View]-->
......@@ -88,7 +88,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CODENAME, 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 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>
</mapper>
......
......@@ -11,7 +11,7 @@
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, 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.ISENABLEAUDIT, 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, t1.UPDATEDATE 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="postgresql">
<![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.ISENABLEAUDIT, 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}]]>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, 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.ISENABLEAUDIT, 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, t1.UPDATEDATE 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自动处理映射关系 -->
......@@ -73,7 +73,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![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.ISENABLEAUDIT, 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
<![CDATA[ SELECT t1.CODENAME, t1.CREATEDATE, 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.ISENABLEAUDIT, 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, t1.UPDATEDATE FROM IBZFIELD t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID
]]>
</sql>
<!--数据查询[View]-->
......@@ -88,7 +88,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![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.ISENABLEAUDIT, 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
<![CDATA[ SELECT t1.CODENAME, t1.CREATEDATE, 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.ISENABLEAUDIT, 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, t1.UPDATEDATE FROM IBZFIELD t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID LEFT JOIN IBZRELATION t21 ON t1.RELATIONID = t21.RELATIONID
]]>
</sql>
</mapper>
......
......@@ -11,7 +11,7 @@
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME, t1.REFRESHTIME, t1.SYSTEMID, t1.UPDATEDATE 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}]]>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME, t1.REFRESHTIME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZMODEL t1 ) t1 where modelid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -55,7 +55,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CODENAME, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
<![CDATA[ SELECT t1.CODENAME, t1.CREATEDATE, t1.MATERIALIZEDVIEW, t1.MODELID, t1.MODELNAME, t1.REFRESHTIME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZMODEL t1
]]>
</sql>
<!--数据查询[View]-->
......@@ -70,7 +70,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CODENAME, t1.MODELCFG, t1.MODELID, t1.MODELNAME FROM IBZMODEL t1
<![CDATA[ SELECT t1.CODENAME, t1.CREATEDATE, t1.MATERIALIZEDVIEW, t1.MODELCFG, t1.MODELID, t1.MODELNAME, t1.REFRESHTIME, t1.SYSTEMID, t1.UPDATEDATE FROM IBZMODEL t1
]]>
</sql>
</mapper>
......
......@@ -11,7 +11,7 @@
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, t1.ENTITYID, t1.ENTITYNAME, t1.LOOKUP, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID, t1.UPDATEDATE FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where relationid=#{id}]]>
</select>
<select id="selectById" resultMap="MetaRelationshipResultMap" databaseId="postgresql">
<![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}]]>
<![CDATA[select t1.* from (SELECT t1.CODENAME, t1.CREATEDATE, t1.ENTITYID, t1.ENTITYNAME, t1.LOOKUP, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID, t1.UPDATEDATE FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID ) t1 where relationid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -66,7 +66,7 @@
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CODENAME, t1.ENTITYID, t1.ENTITYNAME, 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
<![CDATA[ SELECT t1.CODENAME, t1.CREATEDATE, t1.ENTITYID, t1.ENTITYNAME, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID, t1.UPDATEDATE FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
<!--数据查询[View]-->
......@@ -81,7 +81,7 @@
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![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
<![CDATA[ SELECT t1.CODENAME, t1.CREATEDATE, t1.ENTITYID, t1.ENTITYNAME, t1.LOOKUP, t1.NESTEDNAME, t1.REFENTITYID, t1.REFENTITYNAME, t1.RELATIONID, t1.RELATIONNAME, t1.RELTYPE, t11.SYSTEMID, t1.UPDATEDATE FROM IBZRELATION t1 LEFT JOIN IBZENTITY t11 ON t1.ENTITYID = t11.ENTITYID
]]>
</sql>
</mapper>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册