INSERT INTO t_subject_dept(subject_id, dept_id) VALUES (#{item.subjectId}, #{item.deptId}) DELETE FROM t_subject_dept WHERE subject_id = #{subjectId}