<if test="capTypList!=null and capTypList.size()!=0">
and cap_typ in
<foreach collection="capTypList" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
特别注意:
传入参数:对象,对象的属相包含capTypList
<if test="capTypList!=null and capTypList.size()!=0">
and cap_typ in
<foreach collection="capTypList" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
特别注意:
传入参数:对象,对象的属相包含capTypList