<select id="selectByOrderIds" resultType="tbb.org.model.OrderDishes">
select * from order_dishes where
<if test="idList != null and idList.size() > 0">
order_id in (
<foreach collection="idList" item="ids" separator=",">
#{ids}
</foreach>
)
</if>
</select>
因篇幅问题不能全部显示,请点此查看更多更全内容