查询
select 一定要有resultType,查询出来是list,resultType是list里数据的类型
前台传值
一定要<if test="">标签 判断 ,值用'${xxx}' #{xxx} #是占位符
<foreach>
ID in <foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>
查询
select 一定要有resultType,查询出来是list,resultType是list里数据的类型
前台传值
一定要<if test="">标签 判断 ,值用'${xxx}' #{xxx} #是占位符
<foreach>
ID in <foreach item="id" collection="ids" open="(" separator="," close=")">
#{id}
</foreach>