@Select(value="select max(question_id) from eleh_session_qa_record where tenant = #{tenant} and session_id = #{sessionId} and user_id = #{userId}")
@Select(value="select max(question_id) from eleh_session_qa_record where tenant = #{tenant} and type = 0 and session_id = #{sessionId} and user_id = #{userId}")
@Select(value="select * from eleh_session_qa_record where tenant = #{tenant} and session_id = #{sessionId} and user_id = #{userId} and question_id = #{questionId}")
@Select(value="select * from eleh_session_qa_record where tenant = #{tenant} and type = 0 and session_id = #{sessionId} and user_id = #{userId} and question_id = #{questionId}")
@Select(value="select * from eleh_session_qa_record where tenant = #{tenant} and session_id = #{sessionId} and user_id = #{userId} and type = 1 order by created_at desc limit 1")