package com.nasc.custom.mapper;

import com.nasc.custom.domain.NascMaterial;
import com.nasc.custom.domain.NascMatter;

import java.util.List;

/**
 * @Author: Yujianq
 * @Date: 2024/6/4 16:38
 * @Description: 审查事项相关材料
 * @return:
 */
public interface NascMaterialMapper {

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 11:03
     * @Description: 新增审查事项相关材料信息
     * @param material
     * @return: int
     */
    public int insertMaterial(NascMaterial material);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 16:15
     * @Description: 修改审查事项相关材料信息
     * @param material
     * @return: int
     */
    public int updateMaterial(NascMaterial material);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 16:38
     * @Description: 批量根据选项ID删除材料信息
     * @param optionIds
     * @return: int
     */
    public int deleteMaterialByOptionIds(long[] optionIds);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/19 12:04
     * @Description: 根据事项ID删除材料信息
     * @param matterId
     * @return: int
     */
    public int deleteMaterialByMatterId(Long matterId);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 10:52
     * @Description: 根据事项ID查询材料信息
     * @param matterId
     * @return: com.nasc.custom.domain.NascMaterial
     */
    public NascMaterial getMaterialByMatterId(Long matterId);

}
