package com.nasc.custom.mapper;

import com.nasc.custom.domain.NascPreQuestionOption;

import java.util.List;

/**
 * @Author: Yujianq
 * @Date: 2024/6/4 16:38
 * @Description: 审查事项前置问题选项信息
 * @return:
 */
public interface NascPreQuestionOptionMapper {

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 11:22
     * @Description: 新增审查事项前置问题选项信息
     * @param preQuestionOption
     * @return: int
     */
    public int insertPreQuestionOption(NascPreQuestionOption preQuestionOption);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 16:40
     * @Description: 根据问题ID删除对应的选项
     * @param questionId
     * @return: int
     */
    public int deleteOptionByQuestionId(Long questionId);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 11:28
     * @Description: 根据问题ID查询所有选项信息
     * @param questionId
     * @return: java.util.List<com.nasc.custom.domain.NascPreQuestionOption>
     */
    public List<NascPreQuestionOption> getPreQuestionOptionListByQuestionId(Long questionId);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/19 15:05
     * @Description: 根据问题ID查询该问题被绑定次数
     * @param questionId
     * @return: java.lang.Long
     */
    public Long getQuestionByJumpNum(Long questionId);

}
