<select id="test" parameterType="java.util.List" resultType="user">
select * from jk_user where id in <foreach collection="list" item="id" open="(" close=")" separator=","> #{id} </foreach> </select>本文共 250 字,大约阅读时间需要 1 分钟。
<select id="test" parameterType="java.util.List" resultType="user">
select * from jk_user where id in <foreach collection="list" item="id" open="(" close=")" separator=","> #{id} </foreach> </select>转载于:https://www.cnblogs.com/minshia/p/6821019.html