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

ibiz4j 发布系统代码

上级 44c7acfd
......@@ -10,6 +10,9 @@
<select id="selectById" resultMap="MsgOpenAccessResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1 ) t1 where accessid=#{id}]]>
</select>
<select id="selectById" resultMap="MsgOpenAccessResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1 ) t1 where accessid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MsgOpenAccessResultMap" type="cn.ibizlab.core.notify.domain.MsgOpenAccess" autoMapping="true">
......@@ -46,6 +49,11 @@
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCESSID`, t1.`ACCESSNAME`, t1.`ACCESS_KEY`, t1.`ACCESS_TOKEN`, t1.`DISABLED`, t1.`EXPIRES_TIME`, t1.`OPEN_TYPE`, t1.`REGION_ID`, t1.`SECRET_KEY` FROM `IBZOPENACCESS` t1
......@@ -56,5 +64,10 @@
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.ACCESS_KEY, t1.ACCESS_TOKEN, t1.DISABLED, t1.EXPIRES_TIME, t1.OPEN_TYPE, t1.REDIRECT_URI, t1.REGION_ID, t1.SECRET_KEY FROM IBZOPENACCESS t1
]]>
</sql>
</mapper>
......@@ -10,6 +10,9 @@
<select id="selectById" resultMap="MsgTemplateResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.CONTENT, t1.OPEN_TYPE, t1.TEMPLATE_ID, t1.TEMPLATE_NAME, t1.TEMPLATE_TYPE, t1.TEMPLATE_URL, t1.TID FROM IBZMSGTEMPL t1 ) t1 where tid=#{id}]]>
</select>
<select id="selectById" resultMap="MsgTemplateResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCESSID, t1.ACCESSNAME, t1.CONTENT, t1.OPEN_TYPE, t1.TEMPLATE_ID, t1.TEMPLATE_NAME, t1.TEMPLATE_TYPE, t1.TEMPLATE_URL, t1.TID FROM IBZMSGTEMPL t1 ) t1 where tid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MsgTemplateResultMap" type="cn.ibizlab.core.notify.domain.MsgTemplate" autoMapping="true">
......@@ -53,6 +56,11 @@
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.CONTENT, t1.OPEN_TYPE, t1.TEMPLATE_ID, t1.TEMPLATE_NAME, t1.TEMPLATE_TYPE, t1.TEMPLATE_URL, t1.TID FROM IBZMSGTEMPL t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.CONTENT, t1.OPEN_TYPE, t1.TEMPLATE_ID, t1.TEMPLATE_NAME, t1.TEMPLATE_TYPE, t1.TEMPLATE_URL, t1.TID FROM IBZMSGTEMPL t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`ACCESSID`, t1.`ACCESSNAME`, t1.`CONTENT`, t1.`OPEN_TYPE`, t1.`TEMPLATE_ID`, t1.`TEMPLATE_NAME`, t1.`TEMPLATE_TYPE`, t1.`TEMPLATE_URL`, t1.`TID` FROM `IBZMSGTEMPL` t1
......@@ -63,5 +71,10 @@
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.CONTENT, t1.OPEN_TYPE, t1.TEMPLATE_ID, t1.TEMPLATE_NAME, t1.TEMPLATE_TYPE, t1.TEMPLATE_URL, t1.TID FROM IBZMSGTEMPL t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCESSID, t1.ACCESSNAME, t1.CONTENT, t1.OPEN_TYPE, t1.TEMPLATE_ID, t1.TEMPLATE_NAME, t1.TEMPLATE_TYPE, t1.TEMPLATE_URL, t1.TID FROM IBZMSGTEMPL t1
]]>
</sql>
</mapper>
......@@ -87,6 +87,7 @@
<alibaba-seata.version>1.3.0</alibaba-seata.version>
<oracle.version>11.2.0.3</oracle.version>
<postgresql.version>42.2.6</postgresql.version>
</properties>
......@@ -337,6 +338,12 @@
<artifactId>ojdbc6</artifactId>
<version>${oracle.version}</version>
</dependency>
<!-- PostgreSQL驱动包 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<!-- MySQL驱动包 -->
<dependency>
<groupId>mysql</groupId>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册