REPLACE INTO bm_sub_pro_relation(sub_id,pro_id) VALUES (#{subId},#{proId}); DELETE FROM bm_sub_pro_relation WHERE sub_id=#{subId} update bm_subcontractor set update_time = #{updateTime} where ID = #{subId} update bm_project set update_time = #{updateTime} where ID = #{proId}