<if test="codeList != null and codeList.size > 0"> AND code IN <foreach collection="codeList" item="code" open="(" separator="," close=")"> #{code} </foreach> </if>
作者:行舟逐梦
出处:http://www.cnblogs.com/liujianwang
感谢您的认真阅读。不足之处,欢迎指正。