ibatis如何使用动态参数,谢谢
时间:2008-05-09 11:16:59
来源:论坛整理 作者: 编辑:chinaitzhe
网友回复: $参数$
例如:
<select id="SurveillantServiceDomain_exp_vedioinput_for_fdevice_select" resultClass="com.zjxcsoft.ge.serviceaccp.domain.VideoInputDomain">
<![CDATA[
select channelid,channelname,fdid,channelstate,channellocation from videoinput where fdid in ( $fdid$ )
]]>
</select>
你可以去这个网站
http://www.ibatis.com
网友回复:不明白你说什么
动态查询条件?
网友回复: <select id="getRegsByParam" resultMap="RegulationResult" parameterClass="Regulation">
select *
from tb_laws where classno = #classno#
<dynamic prepend="AND">
<isNotEmpty prepend="AND" property="topic">
(topic like #topic#)
</isNotEmpty>
<isNotEmpty prepend="AND" property="content">
(content like #content#)
</isNotEmpty>
</dynamic>
</select>
网友回复:ibatis开发指南.pdf
这里说的很明白。
关键字:ibatis,使用,动态,参数,谢谢,
下一篇:下面没有链接了











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面