!注意:,一定要有
<update id="updateByPrimaryKeySelective" parameterType="com.dhht.model.order.OrderInfo">
update order_info
<set>
<if test="sendOutStatus != null">
send_out_status = #{sendOutStatus,jdbcType=CHAR},
</if>
<if test="districtId != null">
district_id = #{districtId,jdbcType=CHAR},
</if>
<if test="isCancel != null">
is_cancel = #{isCancel,jdbcType=CHAR},
</if>
<if test="cancelTime != null">
cancel_time = #{cancelTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=CHAR}
</update>