id, role_name, role_type delete from role where id = #{id,jdbcType=VARCHAR} insert into role (id, role_name, role_type ) values (#{id,jdbcType=VARCHAR}, #{roleName,jdbcType=VARCHAR}, #{roleType,jdbcType=INTEGER} ) insert into role id, role_name, role_type, #{id,jdbcType=VARCHAR}, #{roleName,jdbcType=VARCHAR}, #{roleType,jdbcType=INTEGER}, update role role_name = #{roleName,jdbcType=VARCHAR}, role_type = #{roleType,jdbcType=INTEGER}, where id = #{id,jdbcType=VARCHAR} update role set role_name = #{roleName,jdbcType=VARCHAR}, role_type = #{roleType,jdbcType=INTEGER} where id = #{id,jdbcType=VARCHAR} insert into role (id, name) values (#{item.id,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}) ON DUPLICATE KEY UPDATE name = values(name) delete from role where id in #{item,jdbcType=VARCHAR}