package com.gz.service.archive;

import com.github.pagehelper.PageInfo;
import com.gz.dto.archive.ArchiveDTO;
import com.gz.dto.archive.SecondaryArchiveDTO;
import com.gz.vo.PageVO;
import com.gz.vo.archive.SecondaryArchiveInsertVO;
import com.gz.vo.archive.SecondaryArchiveVO;
import com.sun.javafx.image.IntPixelGetter;

import java.util.List;

public interface SecondaryArchiveService {
    /**
     * @description 增
     * @author LiuChangLan
     * @since 2020/9/4 14:46
     */
    Integer insert(SecondaryArchiveInsertVO dto) throws Exception;

    /**
     * @description 删
     * @author LiuChangLan
     * @since 2020/9/4 14:46
     */
    Integer delete(Integer id);

    /**
     * @description 改
     * @author LiuChangLan
     * @since 2020/9/4 14:46
     */
    Integer update(SecondaryArchiveDTO dto);

    /**
     * @description 分页查询
     * @author LiuChangLan
     * @since 2020/9/4 14:46
     */
    PageInfo<SecondaryArchiveDTO> selectByPage(SecondaryArchiveVO vo);

    /**
     * @description 根据主键查询
     * @author LiuChangLan
     * @since 2020/9/4 16:36
     */
    SecondaryArchiveDTO selectByPrimaryKey(Integer id);

    /**
     * @description 根据档案id查询卷内目录
     * @author LiuChangLan
     * @since 2021/3/9 15:32
     */
    List<SecondaryArchiveDTO> selectByArchiveId(Integer archiveId);

}
