布芝倦的博客<select id="findByCids" parameterType="collection" resultMap=...include refid="Base_Column_List"/> FROM company WHERE cid IN <foreach item="cid" index="index" collection="ids" open="(" s
在XML中,可以使用foreach循环来遍历List中的每个元素: ```xml <select id="selectList" resultMap="BaseResultMap"> select * from user_info where status = 1 and user_id in <foreach collection="list" ...