select role_id, role_name,contact_info,company_id, create_time, update_time, role_type, mode_config_json, mode, kf_id, kf_url, avatar, kf_media_id,reminder_words, bind_corp_id,channel_type from fastgpt_role
insert into fastgpt_role
role_name,
company_id,
create_time,
update_time,
role_type,
mode_config_json,
mode,
kf_id,
kf_url,
avatar,
kf_media_id,
reminder_words,
bind_corp_id,
contact_info,
channel_type,
#{roleName},
#{companyId},
#{createTime},
#{updateTime},
#{roleType},
#{modeConfigJson},
#{mode},
#{kfId},
#{kfUrl},
#{avatar},
#{kfMediaId},
#{reminderWords},
#{bindCorpId},
#{contactInfo},
#{channelType},
update fastgpt_role
role_name = #{roleName},
company_id = #{companyId},
create_time = #{createTime},
update_time = #{updateTime},
role_type = #{roleType},
mode_config_json = #{modeConfigJson},
mode = #{mode},
kf_id = #{kfId},
kf_url = #{kfUrl},
avatar = #{avatar},
kf_media_id = #{kfMediaId},
reminder_words = #{reminderWords},
bind_corp_id = #{bindCorpId},
contact_info = #{contactInfo},
channel_type = #{channelType},
where role_id = #{roleId}
delete from fastgpt_role where role_id = #{roleId}
delete from fastgpt_role where role_id in
#{roleId}