例如下面的xml文件内容
<update id="updateRecord">
UPDATE T_EXT
<set>
<if test="extId !='' and extId !=null">
EXT_ID = #{extId},
</if>
<if test="guid !='' and guid !=null">
GUID = #{guid},
</if>
<if test="startTime !=null">
START_TIME = #{startTime},
</if>
<if test="endTime !=null">
END_TIME = #{endTime},
</if>
</set>
<where>
<if test="phoneNumber !='' and phoneNumber !=null">
AND id= #{id}
</if>
<if test="phoneNumber !='' and phoneNumber !=null">
AND PHONE_NUMBER = #{phoneNumber}
</if>
</where>