package com.nasc.custom.service;

import com.nasc.custom.domain.NascPreQuestion;

import java.util.List;

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

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 14:17
     * @Description: 根据条件分页查询审查事项问题列表
     * @param question
     * @return: java.util.List<com.nasc.custom.domain.NascPreQuestion>
     */
    public List<NascPreQuestion> selectQuestionList(NascPreQuestion question);

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

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

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

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

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

}
