1.传入list集合遍历
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
2.用or
<if test="resultCode == 'FAIL'">
AND
(t2.result_code !='SUCCESS' OR t2.result_code IS NULL)
</if>
1.传入list集合遍历
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
2.用or
<if test="resultCode == 'FAIL'">
AND
(t2.result_code !='SUCCESS' OR t2.result_code IS NULL)
</if>