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

lab_qyk 发布系统代码

上级 6df555dd
......@@ -10,6 +10,9 @@
<select id="selectById" resultMap="IBZDictResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CFG, t1.CREATEDATE, t1.CREATEMAN, t1.ENABLE, t1.IBZDICTID, t1.IBZDICTNAME, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICT t1 ) t1 where ibzdictid=#{id}]]>
</select>
<select id="selectById" resultMap="IBZDictResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CFG, t1.CREATEDATE, t1.CREATEMAN, t1.ENABLE, t1.IBZDICTID, t1.IBZDICTNAME, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICT t1 ) t1 where ibzdictid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="IBZDictResultMap" type="cn.ibizlab.core.dict.domain.IBZDict" autoMapping="true">
......@@ -41,6 +44,12 @@
WHERE t1.enable = 1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.ENABLE, t1.IBZDICTID, t1.IBZDICTNAME, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICT t1
WHERE t1.enable = 1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CFG`, t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`ENABLE`, t1.`IBZDICTID`, t1.`IBZDICTNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZDICT` t1
......@@ -53,5 +62,11 @@
WHERE t1.enable = 1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CFG, t1.CREATEDATE, t1.CREATEMAN, t1.ENABLE, t1.IBZDICTID, t1.IBZDICTNAME, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICT t1
WHERE t1.enable = 1
]]>
</sql>
</mapper>
......@@ -10,6 +10,9 @@
<select id="selectById" resultMap="IBZDictItemResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.CREATEDATE, t1.CREATEMAN, t1.DICTID, t1.DICTITEMVAL, t1.IBZDICTITEMID, t1.IBZDICTITEMNAME, t1.ITEMCLS, t1.ITEMFILTER, t1.ITEMICON, t1.PITEMVAL, t1.SHOWORDER, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICTITEM t1 ) t1 where ibzdictitemid=#{id}]]>
</select>
<select id="selectById" resultMap="IBZDictItemResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.CREATEDATE, t1.CREATEMAN, t1.DICTID, t1.DICTITEMVAL, t1.IBZDICTITEMID, t1.IBZDICTITEMNAME, t1.ITEMCLS, t1.ITEMFILTER, t1.ITEMICON, t1.PITEMVAL, t1.SHOWORDER, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICTITEM t1 ) t1 where ibzdictitemid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="IBZDictItemResultMap" type="cn.ibizlab.core.dict.domain.IBZDictItem" autoMapping="true">
......@@ -50,6 +53,11 @@
<![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.DICTID, t1.DICTITEMVAL, t1.IBZDICTITEMID, t1.IBZDICTITEMNAME, t1.ITEMCLS, t1.ITEMFILTER, t1.ITEMICON, t1.PITEMVAL, t1.SHOWORDER, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICTITEM t1
]]>
</sql>
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.DICTID, t1.DICTITEMVAL, t1.IBZDICTITEMID, t1.IBZDICTITEMNAME, t1.ITEMCLS, t1.ITEMFILTER, t1.ITEMICON, t1.PITEMVAL, t1.SHOWORDER, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICTITEM t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`DICTID`, t1.`DICTITEMVAL`, t1.`IBZDICTITEMID`, t1.`IBZDICTITEMNAME`, t1.`ITEMCLS`, t1.`ITEMFILTER`, t1.`ITEMICON`, t1.`PITEMVAL`, t1.`SHOWORDER`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `IBZDICTITEM` t1
......@@ -60,5 +68,10 @@
<![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.DICTID, t1.DICTITEMVAL, t1.IBZDICTITEMID, t1.IBZDICTITEMNAME, t1.ITEMCLS, t1.ITEMFILTER, t1.ITEMICON, t1.PITEMVAL, t1.SHOWORDER, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICTITEM t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.CREATEDATE, t1.CREATEMAN, t1.DICTID, t1.DICTITEMVAL, t1.IBZDICTITEMID, t1.IBZDICTITEMNAME, t1.ITEMCLS, t1.ITEMFILTER, t1.ITEMICON, t1.PITEMVAL, t1.SHOWORDER, t1.UPDATEDATE, t1.UPDATEMAN FROM IBZDICTITEM t1
]]>
</sql>
</mapper>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册