判断集合示例如下:
<if test="groupIds != null and groupIds.size>0">
and (group_id in<foreach collection="groupIds" index="index" item="item" open="(" separator=","
close=")">#{item}</foreach>)
</if>
判断集合示例如下:
<if test="groupIds != null and groupIds.size>0">
and (group_id in<foreach collection="groupIds" index="index" item="item" open="(" separator=","
close=")">#{item}</foreach>)
</if>