xml配置 :
<select id="selectPostIn" resultType="dasyskjcdtblVo"> SELECT SYS_MODULE.* FROM SYS_MODULE WHERE MODULEID in <foreach item="item" index="index" collection="list" open="(" separator="," close=")"> #{item} </foreach> </select>
java后台代码使用list接收整个查询出来的结果集