首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

ibatis XML简略示例

2012-11-08 
ibatis XML简单示例select idqueryLotteryByCriteria resultparameterpropertyappIdAPPID #appI

ibatis XML简单示例
<select id="queryLotteryByCriteria" resultparameterproperty="appId">
APPID = #appId#
</isNotEmpty>
<isNotEmpty prepend="and" property="userId_head">
USERID like #userId_head# || '%'
</isNotEmpty>
<isNotEmpty prepend="and" property="userId_trail">
    USERID like '%' || #userId_trail#
</isNotEmpty>
<isNotEmpty prepend="and" property="sequence_trail">
APPSEQUENCE like '%' || #sequence_trail#
</isNotEmpty>
<isNotNull prepend="and" property="areas">
AREA in
<iterate property="areas" open="(" close=")" conjunction=",">
#areas[]#
</iterate>
</isNotNull>
</dynamic>
order by APPID,APPSEQUENCE
</select>
<select id="getSequenceForUser" resultClass="java.lang.String">
select s_po_lotterydata.nextval from dual
</select>

热点排行