package com.gz.mapper.statistics;


import com.gz.rvo.statistics.ArchiveStatisticsRVO;
import com.gz.rvo.statistics.ArchiveYearStatisticsRVO;
import com.gz.rvo.statistics.BorrowStatisticsRVO;
import com.gz.vo.statistics.StatisticsVO;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "SelectStatisticsMapper")
@CacheNamespace
public interface SelectStatisticsMapper{

    @Cacheable(key ="#p0")
    List<ArchiveStatisticsRVO> selectArchiveStatistics(StatisticsVO vo);

    @Cacheable(key ="#p0")
    List<ArchiveYearStatisticsRVO> selectArchiveYearStatistics(StatisticsVO vo);

    @Cacheable(key ="#p0")
    List<BorrowStatisticsRVO> selectBorrowStatistics(StatisticsVO vo);
}
