package com.nasc.custom.mapper;

import com.nasc.custom.domain.NascPreQuestion;

import java.util.List;

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

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 11:18
     * @Description: 新增审查事项前置问题信息
     * @param preQuestion
     * @return: int
     */
    public int insertPreQuestion(NascPreQuestion preQuestion);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 14:35
     * @Description: 修改审查事项前置问题信息
     * @param preQuestion
     * @return: int
     */
    public int updatePreQuestion(NascPreQuestion preQuestion);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 16:42
     * @Description: 根据审查事项ID删除对应的问题
     * @param matterId
     * @return: int
     */
    public int deleteQuestionByMatterId(Long matterId);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 14:44
     * @Description: 根据问题ID删除问题信息
     * @param id
     * @return: int
     */
    public int deleteQuestionById(Long id);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 11:22
     * @Description: 根据审查事项ID查询所有问题
     * @param matterId
     * @return: java.util.List<com.nasc.custom.domain.NascPreQuestion>
     */
    public List<NascPreQuestion> getQuestionByMatterId(Long matterId);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 14:56
     * @Description: 根据审查问题ID查询详细信息
     * @param id
     * @return: com.nasc.custom.domain.NascPreQuestion
     */
    public NascPreQuestion getQuestionById(Long id);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 14:30
     * @Description: 根据事项ID和问题名称查询是否重复
     * @param question
     * @return: java.lang.Long
     */
    public Long checkQuestionDuplicates(NascPreQuestion question);

}
