mybatis中sql in

<select id="findAdsByUserIds" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from ad_advertise_t where is_del=0 and  user_id in
<foreach item="item" index="index" collection="list" open="("
separator="," close=")">
#{item} 
</foreach>
</select>


你可能感兴趣的:(mybatis中sql in)