delete from tb_role_service_type where id = #{id,jdbcType=BIGINT} insert into tb_role_service_type (id, role_id, service_type ) values (#{id,jdbcType=BIGINT}, #{roleId,jdbcType=INTEGER}, #{serviceType,jdbcType=VARCHAR} ) update tb_role_service_type set role_id = #{roleId,jdbcType=INTEGER}, service_type = #{serviceType,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT}