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