mybatis-xml-------foreach

		<if test="list!=null and list.size>0">
			and create_by in
			<foreach collection="list" item="item" separator="," open="(" close=")" >
				#{item}
			</foreach>
		</if>

  

原文地址:https://www.cnblogs.com/St123456/p/13755476.html