package com.nasc.custom.mapper;

import com.nasc.common.core.domain.entity.SysUser;
import com.nasc.custom.domain.NascMatter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

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

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 10:38
     * @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:37
     * @Description: 根据事项名称和事项所属部门查询是否重复
     * @param matter
     * @return: java.lang.Long
     */
    public Long checkMatterDuplicates(NascMatter matter);

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

    /**
     * @Author: Yujianq
     * @Date: 2024/6/5 16:04
     * @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:14
     * @Description: 根据审查事项ID查询详情
     * @param id
     * @return: com.nasc.custom.domain.NascMatter
     */
    public NascMatter getMatterInfo(Long id);

    /**
     * @Author: Yujianq
     * @Date: 2024/6/19 16:07
     * @Description: 检查部门是否有事项
     * @param deptId
     * @return: java.lang.Long
     */
    public Long checkDeptMatter(Long deptId);

}
