mybatis常用总结

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>

欢迎关注微信公众号,获取更多资源

程序员小明

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×