赞
踩
SELECT * from XXX
where 1=1
<if test="list!= null and list != ''">
and `status` in
<foreach collection="list.split(',')" item="item"
index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。