package com.ruoyi.web.modules.prosperity.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.prosperity.domain.BizCommonProsperityProject;

/**
 * 共同富裕项目 Mapper
 */
public interface BizCommonProsperityProjectMapper
{
    BizCommonProsperityProject selectBizCommonProsperityProjectById(Long id);

    List<BizCommonProsperityProject> selectBizCommonProsperityProjectList(BizCommonProsperityProject query);

    int insertBizCommonProsperityProject(BizCommonProsperityProject row);

    int updateBizCommonProsperityProject(BizCommonProsperityProject row);

    int deleteBizCommonProsperityProjectByIds(Long[] ids);

    /**
     * 大屏：已发布且实施周期与统计年有交集的项目（分类统计、列表分页共用条件）。
     */
    List<BizCommonProsperityProject> selectPublishedForScreen(@Param("statYear") int statYear);

    /**
     * 大屏：已发布项目涉及的年份（实施起止年的并集，供可选年份下拉）。
     */
    List<String> selectDistinctStatYearsFromPublished();
}
