select id, term_name, term_code, stu_year_id from cph_term insert into cph_term term_name, term_code, stu_year_id, #{termName}, #{termCode}, #{stuYearId}, update cph_term term_name = #{termName}, term_code = #{termCode}, stu_year_id = #{stuYearId}, where id = #{id} delete from cph_term where id = #{id} delete from cph_term where id in #{id}