避坑判断 Date和 INT类型只能判断 是不是等于null
如下
<if test="xfrId != null">xfr_id = #{xfrId},</if>
只有Stirng类型可以判断是否等于空 ""
如下
<if test="phone != null and phone != ''">phone = #{phone},</if>
避坑判断 Date和 INT类型只能判断 是不是等于null
如下
<if test="xfrId != null">xfr_id = #{xfrId},</if>
只有Stirng类型可以判断是否等于空 ""
如下
<if test="phone != null and phone != ''">phone = #{phone},</if>