<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>