ID, label, labelSpell delete from t_department where ID = #{id,jdbcType=INTEGER} SELECT LAST_INSERT_ID() insert into t_department (ID, label, labelSpell ) values (#{id,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR}, #{labelspell,jdbcType=CHAR} ) SELECT LAST_INSERT_ID() insert into t_department ID, label, labelSpell, #{id,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR}, #{labelspell,jdbcType=CHAR}, update t_department label = #{label,jdbcType=VARCHAR}, labelSpell = #{labelspell,jdbcType=CHAR}, where ID = #{id,jdbcType=INTEGER} update t_department set label = #{label,jdbcType=VARCHAR}, labelSpell = #{labelspell,jdbcType=CHAR} where ID = #{id,jdbcType=INTEGER}