select id, session_id, type, module, user_id, show_val, question, answer, warning_id, counts, is_strong, is_satisfied, is_shutdown, del_flag, revision, create_by, create_time, update_by, update_time, remark from t_xinyi_chat_record insert into t_xinyi_chat_record session_id, type, module, user_id, show_val, question, answer, warning_id, counts, is_strong, is_satisfied, is_shutdown, del_flag, revision, create_by, create_time, update_by, update_time, remark, #{sessionId}, #{type}, #{module}, #{userId}, #{showVal}, #{question}, #{answer}, #{warningId}, #{counts}, #{isStrong}, #{isSatisfied}, #{isShutdown}, #{delFlag}, #{revision}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, update t_xinyi_chat_record session_id = #{sessionId}, type = #{type}, module = #{module}, user_id = #{userId}, show_val = #{showVal}, question = #{question}, answer = #{answer}, warning_id = #{warningId}, counts = #{counts}, is_strong = #{isStrong}, is_satisfied = #{isSatisfied}, is_shutdown = #{isShutdown}, del_flag = #{delFlag}, revision = #{revision}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, ,revision = revision + 1 where id = #{id} update t_xinyi_chat_record set del_flag = 2,revision = revision + 1 where del_flag = 0 and id = #{id} update t_xinyi_chat_record set del_flag = 2,revision = revision + 1 where del_flag = 0 and id in #{id}