mybatis判断集合为空或者元素个数为零 ,mybatis判断list为空或null,在xml文件中,持久层写法:
<if test="questionIds!= null and questionIds.size()>0" > WHERE id in <foreach collection="questionIds" index="index" item="item" open="(" separator="," close=")"> #{item} </foreach> </if>
双软认证高企软件认证著作权 恒标
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。