<if test="contact != null">
<if test="contact == 1">
AND (contacts_phone is not NULL or contacts_wx is not NULL)
</if>
<if test="contact == 2">
AND contacts_phone is NULL AND contacts_wx is NULL
</if>
</if>
注意:本文归作者所有,未经作者允许,不得转载