package com.mindskip.xzs.repository; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.mindskip.xzs.domain.QuestionAnswer; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; /** * @author gonghl * @description 针对表【t_question_answer(问答)】的数据库操作Mapper * @createDate 2024-05-11 11:53:55 * @Entity com.mindskip.xzs.questionAnswer.QuestionAnswer */ @Mapper public interface QuestionAnswerMapper extends BaseMapper { /** * 新增时获取目前最大序列 * @return 序号 */ @Select("select ifnull(max(sequence), 1) from t_question_answer") Integer getLastSequence(); }