package cn.ey.biz.module.system.dal.mapper.category;

import cn.ey.biz.framework.mybatis.core.mapper.BaseMapperX;
import cn.ey.biz.module.system.dal.dataobject.category.DictWeekDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 财周数据编码表 Mapper
 */
@Mapper
public interface DictWeekMapper extends BaseMapperX<DictWeekDO> {

    /**
     * 获取财周中所有财年列表
     * @return 财年列表
     */
    @Select("SELECT DISTINCT fiscal_year FROM dict_week")
    List<String> getAllFiscalYear();
}
