ID, label, registerCompanyID, personID delete from t_visitortype where ID = #{id,jdbcType=INTEGER} SELECT LAST_INSERT_ID() insert into t_visitortype (ID, label, registerCompanyID, personID) values (#{id,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR}, #{registercompanyid,jdbcType=INTEGER}, #{personid,jdbcType=INTEGER}) SELECT LAST_INSERT_ID() insert into t_visitortype ID, label, registerCompanyID, personID, #{id,jdbcType=INTEGER}, #{label,jdbcType=VARCHAR}, #{registercompanyid,jdbcType=INTEGER}, #{personid,jdbcType=INTEGER}, update t_visitortype label = #{label,jdbcType=VARCHAR}, registerCompanyID = #{registercompanyid,jdbcType=INTEGER}, personID = #{personid,jdbcType=INTEGER}, where ID = #{id,jdbcType=INTEGER} update t_visitortype set label = #{label,jdbcType=VARCHAR}, registerCompanyID = #{registercompanyid,jdbcType=INTEGER}, personID = #{personid,jdbcType=INTEGER} where ID = #{id,jdbcType=INTEGER}