INSERT INTO role (role_code, role_name, create_by, create_time, update_by, update_time, invalid) VALUES(#{roleCode}, #{roleName}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{invalid}) UPDATE role role_code = #{roleCode}, role_name = #{roleName}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, update_by = #{updateBy}, invalid = #{invalid} WHERE id = #{id}; delete from role where id = #{id}