mybatis常用总结
小明 Lv6

foreach之前对list进行判空

1
2
3
4
5
6
<if test="list != null and list.size() > 0">
_claimreview.id in
<foreach item="item" index="index" collection="list" open="(" separator="," close=")">
#{item}
</foreach>
</if>

欢迎关注获取更多资源

image

 评论