INSERT INTO replacement_instrument (subject_id_,brand_,specification_,param_,market_price_,discount_price_,depreciation_price_,sale_price_,create_time_,update_time_) VALUES(#{subjectId},#{brand},#{specification},#{param},#{marketPrice},#{discountPrice},#{depreciationPrice},#{salePrice},NOW(),NOW()) UPDATE replacement_instrument subject_id_ = #{subjectId}, brand_ = #{brand}, specification_ = #{specification}, param_ = #{param}, market_price_ = #{marketPrice}, discount_price_ = #{discountPrice}, depreciation_price_ = #{depreciationPrice}, sale_price_ = #{salePrice}, update_time_ = #{updateTime}, WHERE id_ = #{id} DELETE FROM replacement_instrument_activity WHERE id_ = #{id}