select role_id, role_name,avatar, company_id, create_time, update_time, role_type, config_json, mode, kf_id, kf_url,kf_media_id, mode_config_json from chat_role insert into chat_role role_name, company_id, create_time, update_time, role_type, config_json, mode, kf_id, kf_url, kf_media_id, mode_config_json, avatar, #{roleName}, #{companyId}, #{createTime}, #{updateTime}, #{roleType}, #{configJson}, #{mode}, #{kfId}, #{kfUrl}, #{kfMediaId}, #{modeConfigJson}, #{avatar}, update chat_role role_name = #{roleName}, company_id = #{companyId}, create_time = #{createTime}, update_time = #{updateTime}, role_type = #{roleType}, config_json = #{configJson}, mode = #{mode}, kf_id = #{kfId}, kf_url = #{kfUrl}, kf_media_id = #{kfMediaId}, mode_config_json = #{modeConfigJson}, avatar = #{avatar}, where role_id = #{roleId} delete from chat_role where role_id = #{roleId} delete from chat_role where role_id in #{roleId}