package com.nasc.custom.service;

import com.nasc.custom.domain.NascMatter;

import java.util.List;

/**
 * @Author: Yujianq
 * @Date: 2024/6/4 16:30
 * @Description: 审查事项
 * @return:
 */
public interface INascMatterService {

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 10:39
     * @Description: 根据条件分页查询审查事项列表
     * @param matter
     * @return: java.util.List<com.nasc.custom.domain.NascMatter>
     */
    public List<NascMatter> selectMatterList(NascMatter matter);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 10:39
     * @Description: 根据事项名称和事项所属部门查询是否重复
     * @param matter
     * @return: java.lang.Long
     */
    public Long checkMatterDuplicates(NascMatter matter);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 10:52
     * @Description: 新增审查事项基础信息
     * @param matter
     * @return: int
     */
    public int insertMatter(NascMatter matter);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 14:37
     * @Description: 修改审查事项基础信息
     * @param matter
     * @return: int
     */
    public int updateMatter(NascMatter matter);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 17:21
     * @Description: 批量根据事项ID删除事项信息
     * @param ids
     * @return: int
     */
    public int deleteMatterByIds(Long[] ids);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/6 10:04
     * @Description: 根据审查事项ID查询详情
     * @param id
     * @return: com.nasc.custom.domain.NascMatter
     */
    public NascMatter getMatterInfo(Long id);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/19 16:08
     * @Description: 查询部门对应的事项数
     * @param deptId
     * @return: java.lang.Long
     */
    public Long checkDeptMatter(Long deptId);

}
