select logs_id, msg_id, logs_type, content, company_user_id, create_time, s_content, user_content, create_by, company_id from fastgpt_chat_msg_logs insert into fastgpt_chat_msg_logs msg_id, logs_type, content, company_user_id, create_time, s_content, user_content, create_by, company_id, #{msgId}, #{logsType}, #{content}, #{companyUserId}, #{createTime}, #{sContent}, #{userContent}, #{createBy}, #{companyId}, update fastgpt_chat_msg_logs msg_id = #{msgId}, logs_type = #{logsType}, content = #{content}, company_user_id = #{companyUserId}, create_time = #{createTime}, s_content = #{sContent}, user_content = #{userContent}, create_by = #{createBy}, company_id = #{companyId}, where logs_id = #{logsId} delete from fastgpt_chat_msg_logs where logs_id = #{logsId} delete from fastgpt_chat_msg_logs where logs_id in #{logsId}