//外面是双引号,里面就是单引号
<if test="contactPhone != null and contactPhone!= '' ">
contact_phone = #{contactPhone}
</if>
//外面是单引号,里面就是双引号
<if test='contactPhone != null and contactPhone != "" '>
contact_phone = #{contactPhone}
</if>
//判断字符串等于某个值是需要使用外面单引号,里面双引号
<if test='contactPhone == "abc" '>
contact_phone = #{contactPhone}
</if>