您的位置:首页 > 其它

ibatis 参数类型为map,map里面有list

2016-01-11 18:12 435 查看
<select id="getChannelLayerList" parameterClass="java.util.HashMap"
resultMap="ChannelLayerMap">
SELECT * FROM
<dynamic>
<isEqual property="dataSource" compareValue="1">
channellayer
</isEqual>

<isEqual property="dataSource" compareValue="0">
channellayer_temp
</isEqual>
</dynamic>
<dynamic prepend="WHERE">
1=1
<isNotNull property="platForm">
and
platForm=#platForm#
</isNotNull>
<isNotNull property="provinceId">
and
provinceId=#provinceId#
</isNotNull>
<isNotNull property="cityId">
and
cityId=#cityId#
</isNotNull>
<isNotNull property="channelId">
and
channelId=#channelId#
</isNotNull>
<isNotNull property="typeId">
and
typeId=#typeId#
</isNotNull>
<isNotNull property="beginTime">
<![CDATA[ and beginTime >= #beginTime# ]]>
</isNotNull>
<isNotNull property="endTime">
<![CDATA[ and endTime<=#endTime# ]]>
</isNotNull>
<isNotNull property="batchIds">
and batchId in
<iterate property="batchIds" conjunction="," open="(" close=")">
#batchIds[]#
</iterate>
</isNotNull>
</dynamic>
ORDER
BY
updateTime desc,
isShow desc
</select>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: